Class GeneratedText
The text generated during each run.
Inherited Members
Namespace: Oci.GenerativeaiinferenceService.Models
Assembly: OCI.DotNetSDK.Generativeaiinference.dll
Syntax
public class GeneratedText
Properties
FinishReason
Declaration
[JsonProperty(PropertyName = "finishReason")]
public string FinishReason { get; set; }
Property Value
Type | Description |
---|---|
string | The reason why the model stopped generating tokens.
|
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | A unique identifier for this text generation. |
Remarks
Required
Likelihood
Declaration
[Required(ErrorMessage = "Likelihood is required.")]
[JsonProperty(PropertyName = "likelihood")]
public double Likelihood { get; set; }
Property Value
Type | Description |
---|---|
double | The overall likelihood of the generated text.
|
Remarks
Required
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
TokenLikelihoods
Declaration
[JsonProperty(PropertyName = "tokenLikelihoods")]
public List<TokenLikelihood> TokenLikelihoods { get; set; }
Property Value
Type | Description |
---|---|
List<TokenLikelihood> | A collection of generated tokens and their corresponding likelihoods. |