zeroclaw/src/agent
argenis de la rosa 408616b34e feat(agent): expose hooks parameter in public run() entry point
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>
2026-02-28 18:19:48 -05:00
..
loop_ fix(utf8): prevent panic on CJK text truncation [CDV-27] 2026-02-28 16:35:09 -05:00
agent.rs fix(memory): auto-save assistant responses alongside user messages 2026-02-28 17:24:31 -05:00
classifier.rs feat(agent): log query classification route decisions 2026-02-22 21:32:34 -05:00
dispatcher.rs feat(providers): add quota_metadata to ChatResponse across all providers 2026-02-28 11:45:02 -05:00
loop_.rs feat(agent): expose hooks parameter in public run() entry point 2026-02-28 18:19:48 -05:00
memory_loader.rs fix(memory): stop autosaving assistant summaries and filter legacy entries 2026-02-20 01:14:08 +08:00
mod.rs Merge remote-tracking branch 'origin/main' into pr2093-mainmerge 2026-02-28 17:33:17 -05:00
prompt.rs feat(skills): support front-matter metadata and always-inject skills (#2248) 2026-02-28 13:11:57 -05:00
quota_aware.rs fix(quota): address CodeRabbit review feedback 2026-02-28 11:45:02 -05:00
research.rs supersede: file-replay changes from #1639 2026-02-25 02:18:16 +00:00
session.rs session: make get_history side-effect free 2026-02-28 18:51:30 +08:00
tests.rs fix(memory): auto-save assistant responses alongside user messages 2026-02-28 17:24:31 -05:00