Skip to content

AskOptions

Defined in: src/decisions/types.ts:25

Per-call options for DecisionModel.ask.

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.

DecisionCallOptions.cancelSignal


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.