Class ChatDoneResponseStream
- Namespace
- OllamaSharp.Models.Chat
- Assembly
- OllamaSharp.dll
Represents the final message in a stream of responses from the /api/chat endpoint.
public class ChatDoneResponseStream : ChatResponseStream
- Inheritance
-
ChatDoneResponseStream
- Inherited Members
Properties
DoneReason
The reason for the completion of the chat
[JsonPropertyName("done_reason")]
public string? DoneReason { get; set; }
Property Value
EvalCount
The number of tokens in the response
[JsonPropertyName("eval_count")]
public int EvalCount { get; set; }
Property Value
EvalDuration
The time in nanoseconds spent generating the response
[JsonPropertyName("eval_duration")]
public long EvalDuration { get; set; }
Property Value
LoadDuration
The time spent in nanoseconds loading the model
[JsonPropertyName("load_duration")]
public long LoadDuration { get; set; }
Property Value
PromptEvalCount
The number of tokens in the prompt
[JsonPropertyName("prompt_eval_count")]
public int PromptEvalCount { get; set; }
Property Value
PromptEvalDuration
The time spent in nanoseconds evaluating the prompt
[JsonPropertyName("prompt_eval_duration")]
public long PromptEvalDuration { get; set; }
Property Value
TotalDuration
The time spent generating the response
[JsonPropertyName("total_duration")]
public long TotalDuration { get; set; }