Skip to main content

Module agent

Module agent 

Source
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
AgentBuilder
Builder for creating an Agent with fluent configuration
AgentResponse
Response from Agent.run() containing the result and execution statistics
ContextConfig
Configuration for context resolution
ContextLoadResult
Information about loaded context for inspection
TokenUsageStats
Cumulative token usage statistics
ToolCallInfo
Information about a tool call made during agent execution
ToolInfo
Information about a tool for display purposes

Enums§

AgentError
Errors that can occur during agent execution
ContextError
Errors that can occur during context file loading
ContextSource
Represents a context source with its configuration
PermissionError
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)