Add `hooks: Option<&crate::hooks::HookRunner>` as the last parameter to the public `agent::run()` (re-exported from `loop_::run`). This enables library consumers to inject custom HookHandler implementations (before_tool_call, on_after_tool_call) without patching the crate. The hooks are threaded through to `run_tool_call_loop` which already accepts and dispatches them. All existing call sites pass `None`, preserving backward compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| loop_ | ||
| agent.rs | ||
| classifier.rs | ||
| dispatcher.rs | ||
| loop_.rs | ||
| memory_loader.rs | ||
| mod.rs | ||
| prompt.rs | ||
| quota_aware.rs | ||
| research.rs | ||
| session.rs | ||
| tests.rs | ||