Skip to content

Interface: AiDecideRequest ​

ctx.ai.decide: an answer to each question about state.

Extends ​

  • AiTarget

Properties ​

connection ​

ts
connection: AiConnection;

Inherited from ​

ts
AiTarget.connection

engine? ​

ts
optional engine?: "native" | "adapter";

native (TypeSafe; OpenAI's Decisions API) or adapter (a language model asked for structured output); the provider's own way by default.


model ​

ts
model: string;

Inherited from ​

ts
AiTarget.model

questions ​

ts
questions: AiQuestion[];

At most 32.


state ​

ts
state: AiDecisionState;

timeoutMs? ​

ts
optional timeoutMs?: number;

At most two minutes, and never past the call's own deadline; as long as the call allows by default.

Inherited from ​

ts
AiTarget.timeoutMs

Released under the Apache-2.0 License.