Class Choice
Inheritance
object
Choice
Implements
IEquatable<Choice>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DotnetPrompt.LLM.OpenAI.Model
Assembly: DotnetPrompt.LLM.OpenAI.dll
Syntax
public record Choice : IEquatable<Choice>
Properties
| Improve this Doc View SourceFinishReason
Reason for finishing.
Declaration
[JsonPropertyName("finish_reason")]
public string FinishReason { get; init; }
Property Value
Type | Description |
---|---|
string |
Index
Index.
Declaration
[JsonPropertyName("index")]
public int? Index { get; init; }
Property Value
Type | Description |
---|---|
int? |
Logprobs
Log Prob Model.
Declaration
[JsonPropertyName("logprobs")]
public CompletionsLogProbability Logprobs { get; init; }
Property Value
Type | Description |
---|---|
CompletionsLogProbability |
Message
The generated completions in the chat format.
Declaration
[JsonPropertyName("message")]
public ChatMessage Message { get; init; }
Property Value
Type | Description |
---|---|
ChatMessage |
Text
Generated text for given completion prompt.
Declaration
[JsonPropertyName("text")]
public string Text { get; init; }
Property Value
Type | Description |
---|---|
string |
Implements
System.IEquatable<T>