Table of Contents

Class ChoiceAnswer

Namespace
TypeSafe.AI.Sdk
Assembly
TypeSafe.AI.Sdk.dll

A selected label and its probabilities.

public sealed class ChoiceAnswer : Answer
Inheritance
ChoiceAnswer
Inherited Members

Properties

Choice

The selected label.

public string Choice { get; init; }

Property Value

string

Confidence

Reported confidence in the selected label.

public double Confidence { get; init; }

Property Value

double

Probabilities

Probabilities keyed by label.

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

Property Value

IReadOnlyDictionary<string, double>

Type

Answer type matching the question: noul, choice, or score.

public override string Type { get; }

Property Value

string