Skip to main content

Module agent_loop

Module agent_loop 

Source
Expand description

Generic agent loop — drives agent + tools until completion or limit.

Includes 3-tier loop detection (exact signature, tool name frequency, output stagnation).

Structs§

LoopConfig
Loop configuration.

Enums§

LoopEvent
Events emitted during the agent loop.

Functions§

run_loop
Run the agent loop: decide → execute tools → feed results → repeat.
run_loop_interactive
Run the agent loop with interactive input support.