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
- Intent
Detection Result - Result from IntentDetection harness
- Parallel
Step Result - Result of a single parallel step execution, emitted as structured JSON so the frontend can render it dynamically in the user’s language.
- Target
Hints - Target hints from IntentDetection harness
- Tool
Command - Adapter that implements
SessionCommandfor tool execution via the queue.
Enums§
- Agent
Event - Events emitted during agent execution