Skip to main content

Module react_loop

Module react_loop 

Source
Expand description

The ReAct loop — iterate model calls + tool execution until completion.

Ported from Python core/react_loop.py (core control flow). Completion is detected exactly as in Python: the model returns no tool_calls → the final text is the summary and the loop ends.

Structs§

ReactLoop
The ReAct loop driver. Borrows the collaborators for the duration of a run.
RunResult

Enums§

RunStatus
Outcome of a run.