Interface: TurnContext
Defined in: packages/client/src/types.ts:191
Everything a provider needs from the core while it runs a turn.
Properties
reasoning
reasoning: (
delta) =>void
Defined in: packages/client/src/types.ts:196
Stream reasoning to the caller, when the model exposes it.
Parameters
delta
string
Returns
void
runTool
runTool: (
call) =>Promise<ToolOutcome>
Defined in: packages/client/src/types.ts:204
Run a page tool and return what the model should see. Emits the
tool-call and tool-result events. Never throws: failures come
back as { error }.
Parameters
call
args
Record<string, unknown>
callId?
string
name
string
Returns
Promise<ToolOutcome>
signal
signal:
AbortSignal
Defined in: packages/client/src/types.ts:206
Aborted when the turn is cancelled, times out or is ended by a tool.
status
status: (
message) =>void
Defined in: packages/client/src/types.ts:198
Progress the caller may show, e.g. "Starting your agent…".
Parameters
message
string
Returns
void
text
text: (
delta) =>void
Defined in: packages/client/src/types.ts:194
Stream text to the caller.
Parameters
delta
string
Returns
void
turnId
turnId:
string
Defined in: packages/client/src/types.ts:192