Skip to content

DecisionAnswer

Namespace: E2E.Decision.Sdk

public sealed class DecisionAnswer

One model answer (the AI SDK’s DecisionAnswer). Numbers are returned as the provider sent them. Type is the question’s type, or refusal when the model declined the question.

Inheritance: object

View source

public DecisionBox? Box { get; init; }

The normalized box of a box answer.

Value: DecisionBox

public string? Choice { get; init; }

The selected option of a choice answer.

Value: string

public IReadOnlyDictionary<string, double>? Probabilities { get; init; }

The distribution of a choice or score answer: option ids, or level indexes, to probabilities. Null when the model gave none.

Value: IReadOnlyDictionary<string, double>

public double? Probability { get; init; }

P(true) of a boolean answer.

Value: double?

public double? Score { get; init; }

The score of a score answer.

Value: double?

public required string Type { get; init; }

Value: string