Namespace OllamaSharp.Models.Chat
Classes
- ChatDoneResponseStream
Represents the final message in a stream of responses from the /api/chat endpoint.
- ChatRequest
Represents a request to generate a chat completion using the specified model and parameters.
- ChatResponseStream
Represents a streamed response from a chat model in the Ollama API.
- Function
Represents a function that can be executed by a tool.
- Message
Represents a message in a chat.
- Message.Function
Represents a function that can be called by a tool.
- Message.ToolCall
Represents a tool call within a message.
- MessageBuilder
A builder class for constructing a Message by appending multiple message chunks.
- Parameters
Represents the parameters required by a function, including their properties and required fields.
- Property
Represents a property within a function's parameters, including its type, description, and possible values.
- ThinkValueConverter
Converts a ThinkValue to or from JSON.
- Tool
Represents a tool that the model can use, if supported.
Structs
- ChatRole
Represents a role within a chat completions interaction, describing the intended purpose of a message.
- ThinkValue
Represents a "think" value that can either be a boolean or a string indication, such as "high", "medium", "low" (e.g., gpt-oss).