Skip to main content

Module loop_constants

Module loop_constants 

Source
Expand description

Loop-control constants shared by the agentic prompt loops.

The session’s prompt* methods run an agentic loop that repeatedly calls the LLM and executes any tool calls it emits. The constants here tune the guardrails that detect and break pathological loops (e.g. the model keeps running the same tool, keeps promising to call a tool without ever doing it, etc.).