Class ChatResponseStream
- Namespace
- OllamaSharp.Models.Chat
- Assembly
- OllamaSharp.dll
Represents a streamed response from a chat model in the Ollama API.
public class ChatResponseStream
- Inheritance
-
ChatResponseStream
- Derived
- Inherited Members
Properties
CreatedAt
Gets or sets the time the response was generated.
[JsonIgnore]
public DateTimeOffset? CreatedAt { get; set; }
Property Value
CreatedAtString
Gets or sets the time the response was generated.
[JsonPropertyName("created_at")]
public string? CreatedAtString { get; set; }
Property Value
Done
Gets or sets a value indicating whether the response is complete.
[JsonPropertyName("done")]
public bool Done { get; set; }
Property Value
Message
Gets or sets the message returned by the model.
[JsonPropertyName("message")]
public Message Message { get; set; }
Property Value
Model
Gets or sets the model that generated the response.
[JsonPropertyName("model")]
public string Model { get; set; }