AskOptions
Defined in: src/decisions/types.ts:25
Per-call options for DecisionModel.ask.
Extends
Section titled “Extends”Properties
Section titled “Properties”cancelSignal?
Section titled “cancelSignal?”cancelSignal?: AbortSignal;Defined in: src/decisions/types.ts:21
Aborts the underlying decision call when signalled. Built-in implementations honor it; the provider decides how promptly the call stops.
Inherited from
Section titled “Inherited from”DecisionCallOptions.cancelSignal
invocationContext?
Section titled “invocationContext?”invocationContext?: InvocationContext;Defined in: src/decisions/types.ts:27
The request to add this decision’s token usage to, such as a hook event’s or tool context’s invocationContext; the request’s limits don’t apply to the decision.