Skip to main contentModule agent_loop
Source - ActionResult
- Result of executing a single action.
- LoopConfig
- Configuration for the agent loop.
- StepDecision
- Result of one LLM decision step (STAR: Situation → Task → Action).
- LoopEvent
- Events emitted by the agent loop (print, TUI, log).
- SgrAgent
- Base SGR Agent trait — implement per project.
- SgrAgentStream
- Streaming extension for SGR agents.
- process_step
- Post-decision processing: loop detection, action execution, session updates.
- run_loop
- Run the SGR agent loop (non-streaming).
- run_loop_stream
- Run the SGR agent loop with streaming tokens.