Skip to content
1 min read · 156 words

Interface: RawTurnContext

Defined in: lib/contracts/turn_runner_context.ts:35

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.lib/contracts/turn_runner_context.ts:43
stash?Record<string, unknown>A registry for arbitrary additional data to be added to the context as needed; initially empty.lib/contracts/turn_runner_context.ts:39
systemPromptstring | TokenizableThe system prompt guiding the agent's behavior for this turn.lib/contracts/turn_runner_context.ts:41
turnAbortControllerAbortControllerAbortController whose signal can be used to cancel the turn mid-flight.lib/contracts/turn_runner_context.ts:37