ModelTurnLoopInput
Stable boundary between Kuralle’s turn-composition pipeline and a model/tool loop implementation. Drivers may replace this loop, but they do not own policies, gather, output gating, host control, persistence, or flow state.
Properties
Section titled “Properties”ctx: RunContext;maxSteps
Section titled “maxSteps”maxSteps: number;messages
Section titled “messages”messages: ModelMessage[];model: LanguageModel;node: ResolvedNode;purpose
Section titled “purpose”purpose: "extraction" | "speaking";stopAfterToolResults?
Section titled “stopAfterToolResults?”optional stopAfterToolResults?: (state) => boolean | Promise<boolean>;Optional early-stop condition used by silent typed extraction.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
Returns
Section titled “Returns”boolean | Promise<boolean>
system
Section titled “system”system: SystemModelMessage[];temperature?
Section titled “temperature?”optional temperature?: number;tools?
Section titled “tools?”optional tools?: ToolSet;volatileSystemBlocks
Section titled “volatileSystemBlocks”volatileSystemBlocks: (string | undefined)[];