Question
Defined in: src/decisions/types.ts:49
A single question posed to a DecisionModel.
choices constrains the shape of the answer: 'boolean' yields a boolean, and
a readonly tuple of strings yields that tuple’s union. In both cases
Uncertain is also a possible answer unless opted out via
uncertainty: false.
Type Parameters
Section titled “Type Parameters”Properties
Section titled “Properties”question
Section titled “question”question: string;Defined in: src/decisions/types.ts:51
The question posed to the model, in natural language.
choices
Section titled “choices”choices: C;Defined in: src/decisions/types.ts:53
Answer shape: 'boolean' or a non-empty readonly tuple of string literals.
uncertainty?
Section titled “uncertainty?”uncertainty?: | boolean | { minConfidence?: number;};Defined in: src/decisions/types.ts:62
Uncertainty configuration for this question.
- omitted or
true:Uncertainis a permitted response (default). false:Uncertainis disabled; the model must commit to one ofchoices.{ minConfidence }:Uncertainis permitted, with a custom minimum confidence in[0.0, 1.0]. Read only by implementations that return per-answer confidence (e.g. System One models); ignored by LLMDecisionModel.