Result of evaluating a Choice.
Signature:
export declare interface ChoiceResult
Properties
| Property | Type | Description |
|---|---|---|
| confidence | number | Normalized certainty confidence in [0.0, 1.0]. |
| predictionSet | string[] | Conformal prediction set of candidate choice keys covering >= 90% probability mass (size == 1 to execute immediately; size > 1 to escalate or disambiguate). |
| probabilities | Record<string, number> | Probability distribution across all candidate choice keys. |
| selectedKey | string | The winning choice key with highest probability. |
ChoiceResult.confidence
Normalized certainty confidence in [0.0, 1.0].
Signature:
confidence: number;
ChoiceResult.predictionSet
Conformal prediction set of candidate choice keys covering >= 90% probability mass (size == 1 to execute immediately; size > 1 to escalate or disambiguate).
Signature:
predictionSet?: string[];
ChoiceResult.probabilities
Probability distribution across all candidate choice keys.
Signature:
probabilities: Record<string, number>;
ChoiceResult.selectedKey
The winning choice key with highest probability.
Signature:
selectedKey: string;