Skip to main content

Module agent_builder

Module agent_builder 

Source
Expand description

AgentBuilder โ€” Fluent API for creating agents

Structsยง

AgentBuilder
Builder for creating an agent with custom configuration.
SessionHookClosures
Closures owned by the cli (or any product) that participate in the agent hook chain. Passed into AgentBuilder::with_session_hooks so they are composed into the same AgentHooks that the middleware pipeline produces. The single-set_hooks invariant (only AgentBuilder::build calls set_hooks) is what keeps the before/after_tool_call slots alive across the cli session boot.