Expand description
Agent module for orchestrating LLM interactions with tools
The Agent is the core orchestrator that manages conversations with language models, executes tools, handles permission workflows, and maintains session state.
Structs§
- Agent
- Agent that orchestrates interactions between a language model and tools
- Agent
Builder - Builder for creating an Agent with fluent configuration
- Agent
Response - Response from Agent.run() containing the result and execution statistics
- Context
Config - Configuration for context resolution
- Context
Load Result - Information about loaded context for inspection
- Token
Usage Stats - Cumulative token usage statistics
- Tool
Call Info - Information about a tool call made during agent execution
- Tool
Info - Information about a tool for display purposes
Enums§
- Agent
Error - Errors that can occur during agent execution
- Context
Error - Errors that can occur during context file loading
- Context
Source - Represents a context source with its configuration
- Permission
Error - Errors that can occur during permission operations
Constants§
- DEFAULT_
MAX_ CONCURRENT_ TOOLS - Default maximum concurrent tool executions
- DEFAULT_
PERMISSION_ TIMEOUT - Default permission timeout (5 minutes)