DecisionBoolQuestion class final

A yes/no question answered with a calibrated probability (bool).

Inheritance

Constructors

DecisionBoolQuestion({required Object? instructions, Object? criteriaTrue, Object? criteriaFalse})
Creates a yes/no question; criteriaTrue/criteriaFalse sharpen the calibration by describing each branch.
const

Properties

criteria → Object?
The question's criteria block (shape depends on type).
no setteroverride
criteriaFalse → Object?
Guidance for the false branch.
final
criteriaTrue → Object?
Guidance for the true branch.
final
hashCode → int
The hash code for this object.
no setterinherited
instructions → Object?
What the model is asked to decide (free-form instructions).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
The wire discriminator: noul per the Decisions API OpenAPI spec (mapping: {box, choice, noul, score}) — NOT bool (review, gh-1844: the API 400s every bool-discriminated question).
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
The wire form: {type, instructions, criteria?}.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited