A yes/no boolean question to evaluate against a context.
Signature:
export declare interface BooleanQuestion
Properties
| Property | Type | Description |
|---|---|---|
| question | string | The yes/no question text. |
| threshold | number | undefined | Optional probability threshold in [0.0, 1.0] above which answer is true. Defaults to 0.5. |
| type | 'boolean' | undefined | Optional discriminator tag ('boolean') when passed to DecisionMaker.evaluate(). |
BooleanQuestion.question
The yes/no question text.
Signature:
question: string;
BooleanQuestion.threshold
Optional probability threshold in [0.0, 1.0] above which answer is true. Defaults to 0.5.
Signature:
threshold?: number;
BooleanQuestion.type
Optional discriminator tag ('boolean') when passed to DecisionMaker.evaluate().
Signature:
type?: 'boolean';