Skip to content
1 min read · 140 words

Interface: RawTurnContext

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

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