Table of Contents

Class ChoiceDecisionAnswer

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

The answer to a ChoiceDecisionQuestion (choice).

public sealed class ChoiceDecisionAnswer : DecisionAnswer
Inheritance
ChoiceDecisionAnswer
Inherited Members
Extension Methods

Constructors

ChoiceDecisionAnswer()

Initializes a new instance of the ChoiceDecisionAnswer class.

public ChoiceDecisionAnswer()

Properties

Choice

The selected choice identifier.

[JsonPropertyName("choice")]
public string? Choice { get; set; }

Property Value

string

Confidence

The confidence of the answer.

[JsonPropertyName("confidence")]
public double? Confidence { get; set; }

Property Value

double?

Probabilities

The probability of each choice.

[JsonPropertyName("probabilities")]
public Dictionary<string, double>? Probabilities { get; set; }

Property Value

Dictionary<string, double>