Class Choice
Represents a single instance of the generated text.
Inherited Members
Namespace: Oci.GenerativeaiinferenceService.Models
Assembly: OCI.DotNetSDK.Generativeaiinference.dll
Syntax
public class Choice
Properties
FinishReason
Declaration
[Required(ErrorMessage = "FinishReason is required.")]
[JsonProperty(PropertyName = "finishReason")]
public string FinishReason { get; set; }
Property Value
Type | Description |
---|---|
string | The reason why the model stopped generating tokens.
|
Remarks
Required
Index
Declaration
[Required(ErrorMessage = "Index is required.")]
[JsonProperty(PropertyName = "index")]
public int? Index { get; set; }
Property Value
Type | Description |
---|---|
int? | The index of the generated text. |
Remarks
Required
Logprobs
Declaration
[JsonProperty(PropertyName = "logprobs")]
public Logprobs Logprobs { get; set; }
Property Value
Type | Description |
---|---|
Logprobs |
Text
Declaration
[Required(ErrorMessage = "Text is required.")]
[JsonProperty(PropertyName = "text")]
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string | The generated text. |
Remarks
Required