Table of Contents

Class ScoreDecisionAnswer

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

The answer to a ScoreDecisionQuestion (score).

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

Constructors

ScoreDecisionAnswer()

Initializes a new instance of the ScoreDecisionAnswer class.

public ScoreDecisionAnswer()

Properties

Confidence

The confidence of the answer.

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

Property Value

double?

Legend

The meaning of each score level.

[JsonPropertyName("legend")]
public Dictionary<string, string>? Legend { get; set; }

Property Value

Dictionary<string, string>

Probabilities

The probability of each score level.

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

Property Value

Dictionary<string, double>

Score

The score.

[JsonPropertyName("score")]
public double? Score { get; set; }

Property Value

double?