Expand description
AgentBuilder โ Fluent API for creating agents
Structsยง
- Agent
Builder - Builder for creating an agent with custom configuration.
- Session
Hook Closures - Closures owned by the cli (or any product) that participate in the
agent hook chain. Passed into
AgentBuilder::with_session_hooksso they are composed into the sameAgentHooksthat the middleware pipeline produces. The single-set_hooksinvariant (onlyAgentBuilder::buildcallsset_hooks) is what keeps the before/after_tool_call slots alive across the cli session boot.