OLLMchat.Response
Description:
API response handling namespace.
The OLLMchat.Response namespace provides classes for deserializing and handling responses from Ollama API calls. All response types
extend Response.Base and are automatically deserialized from JSON.
Content:
Classes:
- Base - Abstract base class for Ollama
API responses.
- CallFunction - Represents a function
call with name and arguments. Used within ToolCall to represent the function being called.
- Chat - Response from a chat API call.
- Chunk - One NDJSON line or v1 SSE payload
deserialized from the wire.
- Create - Represents a progress chunk from the
create API.
- Embed - Represents the response from the
embeddings API.
- EmbeddingDatum - One embedding in an
OpenAI embeddings response. embedding (array of doubles), index.
- EmbeddingList - Top-level OpenAI
embeddings response. object, data (array of EmbeddingDatum), model, optional usage.
- FloatArray - Stores multiple vectors in a
flat array (row-major). Used for embedding API responses and batch FAISS operations. All vectors must have the same width (dimension).
- Generate - Represents the response from the
generate API.
- Model - Represents model information from the
Ollama server.
- Pull - Represents a progress chunk from the pull
API.
- ToolCall - Represents a tool call from the
assistant. Used in assistant messages with tool_calls array.
- Usage - Token usage from an OpenAI API
response. Used in chat completions and embeddings responses.