Class CohereChatResponseV2
The response to the chat conversation.
Inherited Members
Namespace: Oci.GenerativeaiinferenceService.Models
Assembly: OCI.DotNetSDK.Generativeaiinference.dll
Syntax
public class CohereChatResponseV2 : BaseChatResponse
Properties
ErrorMessage
Declaration
[JsonProperty(PropertyName = "errorMessage")]
public string ErrorMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| string | If there is an error during the streaming scenario, then the |
FinishReason
Declaration
[Required(ErrorMessage = "FinishReason is required.")]
[JsonProperty(PropertyName = "finishReason")]
[JsonConverter(typeof(ResponseEnumConverter))]
public CohereChatResponseV2.FinishReasonEnum? FinishReason { get; set; }
Property Value
| Type | Description |
|---|---|
| CohereChatResponseV2.FinishReasonEnum? | Why the generation stopped. |
Remarks
Required
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Unique identifier for the generated reply |
Remarks
Required
LogProbabilities
Declaration
[JsonProperty(PropertyName = "logProbabilities")]
public List<LogProbability> LogProbabilities { get; set; }
Property Value
| Type | Description |
|---|---|
| List<LogProbability> | The log probabilities of the generated tokens. |
Message
Declaration
[Required(ErrorMessage = "Message is required.")]
[JsonProperty(PropertyName = "message")]
public CohereAssistantMessageV2 Message { get; set; }
Property Value
| Type | Description |
|---|---|
| CohereAssistantMessageV2 |
Remarks
Required
Usage
Declaration
[JsonProperty(PropertyName = "usage")]
public Usage Usage { get; set; }
Property Value
| Type | Description |
|---|---|
| Usage |