Expand description
Agent builder — constructs a runnable agent from a ManagedAgentDef.
The build_agent function is the bridge between the declarative agent
definition and the live LlmAgent that the session loop drives. It wires:
- Model (
Arc<dyn Llm>) + system prompt →LlmAgentBuilder - Built-in tool declarations → in-process tool implementations
- Custom tools →
ManagedCustomToolwrappers (park viaToolParkingLot) - Permission policy →
ToolConfirmationPolicy - Description → agent description
MCP servers and skills are noted but their full integration is deferred to later tasks (MCP toolset lifecycle, skill injection).
Structs§
- Managed
Builtin Tool - Built-in tool for server-side execution (bash, filesystem, web_search, etc.).
- Managed
Custom Tool - Wrapper for custom (client-executed) tools declared in a
ManagedAgentDef.
Enums§
- Build
Error - Errors that can occur during agent construction.
Functions§
- build_
agent - Build a runnable agent from a
ManagedAgentDefand a resolved model.