Table of Contents

Class SystemOneChoiceAnswer

Namespace
OllamaSharp.Models
Assembly
OllamaSharp.dll

The answer to a SystemOneChoiceQuestion.

public class SystemOneChoiceAnswer : SystemOneAnswer
Inheritance
SystemOneChoiceAnswer
Inherited Members

Properties

Choice

The option key with the highest probability. Ties select the first option in request order.

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

Property Value

string

Confidence

The distribution concentration between 0 (uniform) and 1 (one candidate dominates). Not calibrated correctness.

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

Property Value

double

Probabilities

The probabilities of all options, normalized over the supplied candidates.

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

Property Value

Dictionary<string, double>

Type

The type discriminator of this answer.

[JsonIgnore]
public override string Type { get; }

Property Value

string