Class CohereChatResponse
Inheritance
CohereChatResponse
Assembly: Glitch9.AIDevKit.Provider.Cohere.dll
Syntax
public sealed class CohereChatResponse
Properties
|
Edit this page
View Source
FinishReason
The reason a chat request has finished.
complete: The model finished sending a complete message.
max_tokens: The number of generated tokens exceeded the model???context length or the value specified via the max_tokens parameter.
stop_sequence: One of the provided stop_sequence entries was reached in the model???generation.
tool_call: The model generated a Tool Call and is expecting a Tool Message in return
error: The generation failed due to an internal error
timeout: The generation was stopped because it exceeded the allowed time limit.
Declaration
[JsonProperty("finish_reason")]
public FinishReason FinishReason { get; set; }
Property Value
|
Edit this page
View Source
Id
Unique identifier for the generated reply. Useful for submitting feedback.
Declaration
[JsonProperty("id")]
public string Id { get; set; }
Property Value
|
Edit this page
View Source
Logprobs
Declaration
[JsonProperty("logprobs")]
public CohereLogProbs Logprobs { get; set; }
Property Value
|
Edit this page
View Source
Message
A message from the assistant role can contain text and tool call information.
Declaration
[JsonProperty("message")]
public Message Message { get; set; }
Property Value
|
Edit this page
View Source
Usage
Declaration
[JsonProperty("usage")]
public CohereUsage Usage { get; set; }
Property Value
Extension Methods