Class Responses.Candidate
public record Responses.Candidate
- Inheritance
-
objectResponses.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
TextstringThe response text.
HasScoreboolDoes the response have a valid Score?
ScorefloatThe response score.
HasTokenLengthboolDoes the response have a valid TokenLength?
TokenLengthintThe token length of this response.
HasTokenScoresboolDoes the response have a valid TokenScores?
TokenScoresfloat[]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[]