Callback type used by the streaming methods. Receives one fully-parsed NDJSON chunk per call; chunk["done"] is true on the final chunk.
A client class for interacting with the Ollama REST API.
Default host URL for the Ollama server.
Represents a single message in a chat interaction.
Typed options for controlling model generation behavior.
A tool (function) definition passed to chat() to enable tool/function calling.
Represents a tool/function call made by the model in a chat response.
Function schema for tool/function calling definitions.
Module providing a D language binding for the Ollama REST API.
This module defines the OllamaClient class, which facilitates interaction with an Ollama server for tasks such as text generation, chat interactions, model management, embeddings, and tool calling. It supports both native Ollama endpoints and OpenAI-compatible endpoints, using std.net.curl for HTTP requests and std.json for JSON processing.