Interface: ToolContext<TurnContextValue>
Defined in: packages/client/src/types.ts:40
Type Parameters
TurnContextValue
TurnContextValue = unknown
Properties
callCount
callCount:
number
Defined in: packages/client/src/types.ts:51
How many times this tool has been called in this turn, this call included.
callId
callId:
string
Defined in: packages/client/src/types.ts:42
Id of this call, stable across events.
context
context:
TurnContextValue
Defined in: packages/client/src/types.ts:49
The turn's context from send(text, { context }): values the page
binds to this turn (current account, selection…). The model never
sets them.
endTurn
endTurn: (
outcome?) =>void
Defined in: packages/client/src/types.ts:56
End the turn once this call returns: the agent is stopped and the run
resolves with outcome (for "terminal" tools, e.g. render_view).
Parameters
outcome?
unknown
Returns
void
signal
signal:
AbortSignal
Defined in: packages/client/src/types.ts:58
Aborted when the turn is cancelled, times out or ends.
turnId
turnId:
string
Defined in: packages/client/src/types.ts:43