Skip to main content

Module agent_loop

Module agent_loop 

Source

Structs§

ActionResult
Result of executing a single action.
LoopConfig
Configuration for the agent loop.
StepDecision
Result of one LLM decision step.

Enums§

LoopEvent
Events emitted by the agent loop (print, TUI, log).

Traits§

SgrAgent
Base SGR Agent trait — implement per project.
SgrAgentStream
Streaming extension for SGR agents.

Functions§

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.