Skip to content
1 min read · 156 words

Interface: RawTurnContext ​

Defined in: src/lib/contracts/turn_runner_context.ts:36

Plain input object supplied to TurnContext at construction time.

Remarks ​

Validated against turnContextSchema before the TurnContext instance is created. Fields will grow as the turn execution model takes shape (e.g. input message, tool definitions, model client config).

Properties ​

PropertyTypeDescriptionDefined in
standingInstructions(string | Tokenizable)[]Standing instructions for the agent, applied to every turn.src/lib/contracts/turn_runner_context.ts:44
stash?Record<string, unknown>A registry for arbitrary additional data to be added to the context as needed; initially empty.src/lib/contracts/turn_runner_context.ts:40
systemPromptstring | TokenizableThe system prompt guiding the agent's behavior for this turn.src/lib/contracts/turn_runner_context.ts:42
turnAbortControllerAbortControllerAbortController whose signal can be used to cancel the turn mid-flight.src/lib/contracts/turn_runner_context.ts:38