Skip to content

Interface: ModelTurnRequest ​

Defined in: ports/model-turn-request.ts:11

Request parameters passed to ModelDriver.invokeTurn().

Encapsulates the target provider model identifier, account seat credentials, reasoning effort, tool calling mode, pinned wire prefix, conversation transcript, and structured output schema.

Properties ​

PropertyModifierTypeDescriptionDefined in
accountConfig?readonlyunknownOptional resolved account seat configuration or credentials.ports/model-turn-request.ts:15
effort?readonly"low" | "medium" | "high"Optional reasoning effort level ('low' | 'medium' | 'high').ports/model-turn-request.ts:17
historyreadonlyreadonly WireFrameRecord[]Ordered conversation transcript frames leading up to this turn.ports/model-turn-request.ts:25
modelIdreadonlystringProvider model identifier (such as 'claude-sonnet-4-6').ports/model-turn-request.ts:13
outputSchema?readonlyZodTypeAny<unknown, unknown, $ZodTypeInternals<unknown, unknown>>Optional Zod schema enforced on structured-output completion or flush turns.ports/model-turn-request.ts:29
roleKey?readonlystringOptional canonical roleKey selecting wirePrefix.wireToolSchemasByRoleKey[roleKey].ports/model-turn-request.ts:23
signal?readonlyAbortSignalOptional abort signal cancelling the in-flight HTTP request.ports/model-turn-request.ts:31
toolChoice?readonly"auto" | "none"Tool calling mode ('auto' during normal turns, 'none' during epistemic flush turns).ports/model-turn-request.ts:19
wirePrefix?readonlyCompiledWirePrefixOptional pinned CompiledWirePrefix for the actor's prefix group.ports/model-turn-request.ts:21
wireToolSchemas?readonlyreadonly WireToolSchema[]Explicit wire tool schemas used when the actor is not bound to a CompiledWirePrefix.ports/model-turn-request.ts:27

Released under the MIT License.