Expand description
Agent Loop Implementation
The agent loop handles the core conversation cycle:
- User sends a prompt
- LLM generates a response (possibly with tool calls)
- If tool calls present, execute them and send results back
- Repeat until LLM returns without tool calls
This implements agentic behavior where the LLM can use tools to accomplish tasks agentically.
Structs§
- Agent
Config - Agent configuration
- Agent
Loop - Agent loop executor
- Agent
Result - Result of agent execution
- Tool
Command - Adapter that implements
SessionCommandfor tool execution via the queue.
Enums§
- Agent
Event - Events emitted during agent execution