Skip to content

TextDriver

readonly outputCapability: "kuralle-controlled-text";
ChannelDriver.outputCapability
awaitUser(ctx): Promise<UserSignal>;
Parameter Type

ctx

RunContext

Promise<UserSignal>

ChannelDriver.awaitUser

runAgentTurn(node, ctx): Promise<TurnResult>;
Parameter Type

node

ResolvedNode

ctx

RunContext

Promise<TurnResult>

ChannelDriver.runAgentTurn

runExtraction(node, ctx): Promise<TurnResult>;

Non-speaking field extraction for collect nodes: runs the submit tool to pull structured fields but MUST NOT emit any user-facing text (no text-delta, no spoken transcript). The returned text is ignored by the flow engine. This is the structural backstop that stops a collect turn from authoring narration that contradicts flow state. Drivers without it fall back to runAgentTurn, whose text the engine then discards.

Parameter Type

node

ResolvedNode

ctx

RunContext

Promise<TurnResult>

ChannelDriver.runExtraction

runStructured(node, ctx): Promise<unknown>;
Parameter Type

node

DecideNode

ctx

RunContext

Promise<unknown>

ChannelDriver.runStructured