Expand description
Shared agent loop for tool-calling models.
Both TUI and non-interactive modes delegate to this loop.
The AgentObserver trait allows each mode to provide its own
I/O behavior (rendering, interruption, logging).
Structs§
- Agent
Loop Result - Result of running the agent loop
- Tool
Execution Result - Result of a single tool execution
Enums§
- Loop
Control - Control flow for the agent loop
Constants§
- MAX_
AGENT_ ITERATIONS - Default maximum iterations for the agent loop
Traits§
- Agent
Observer - How the agent loop communicates with its environment
Functions§
- run_
agent_ loop - Run the agent loop: execute tool calls, feed results back, repeat.