Skip to main content

Module turn

Module turn 

Source
Expand description

RLM turn loop — paper Algorithm 1 driven over a long-lived Python subprocess + stdin/stdout RPC bridge (no HTTP sidecar).

Structs§

RlmRoundTrace
Per-round trace entry. Surfaced in the tool result so the user can see exactly what the sub-agent did.
RlmTurnResult
Result of an RLM turn.

Enums§

RlmTermination
How an RLM turn ended.

Functions§

run_rlm_turn
Run a full RLM turn. prompt is loaded into the REPL as context; it never enters the root LLM’s window.
run_rlm_turn_with_root
Variant that also passes a small root_prompt (the user-facing task) shown to the root LLM each iteration so it remembers its objective.