Skip to content

ChoiceAnswer

Namespace: TypeSafe.AI.Sdk

public sealed class ChoiceAnswer : Answer

A selected label and its probabilities.

Inheritance: object → Answer

View source

public string Choice { get; init; }

The selected label.

Value: string

View source

public double Confidence { get; init; }

Reported confidence in the selected label.

Value: double

View source

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

Probabilities keyed by label.

Value: IReadOnlyDictionary<string, double>

View source

public override string Type { get; }

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

Value: string

View source

MIT · Copyright (c) Dario Kondratiuk. · not affiliated with TypeSafe beyond being a client of the public API