Table of Contents

Class Responses.Candidate

public record Responses.Candidate
Inheritance
object
Responses.Candidate

Constructors

Candidate(string, bool, float, bool, int, bool, float[]?)

public Candidate(string Text, bool HasScore, float Score, bool HasTokenLength, int TokenLength, bool HasTokenScores, float[]? TokenScores)

Parameters

Text string

The response text.

HasScore bool

Does the response have a valid Score?

Score float

The response score.

HasTokenLength bool

Does the response have a valid TokenLength?

TokenLength int

The token length of this response.

HasTokenScores bool

Does the response have a valid TokenScores?

TokenScores float[]

The token scores for this response.

Properties

HasScore

Does the response have a valid Score?

public bool HasScore { get; init; }

Property Value

bool

HasTokenLength

Does the response have a valid TokenLength?

public bool HasTokenLength { get; init; }

Property Value

bool

HasTokenScores

Does the response have a valid TokenScores?

public bool HasTokenScores { get; init; }

Property Value

bool

Score

The response score.

public float Score { get; init; }

Property Value

float

Text

The response text.

public string Text { get; init; }

Property Value

string

TokenLength

The token length of this response.

public int TokenLength { get; init; }

Property Value

int

TokenScores

The token scores for this response.

public float[]? TokenScores { get; init; }

Property Value

float[]