Overview
-
module Async-
module Ollama-
class ChatRepresents a chat response from the Ollama API, including message content, model, and timing information.
-
class ClientRepresents a connection to the Ollama service, providing methods to generate completions, chat, and list models.
-
class ConversationRepresents a conversation with the Ollama API, managing messages, tool calls, and summarization.
-
class ChatErrorRaised when a chat error occurs during the conversation.
-
-
class GenerateRepresents a generated response from the Ollama API.
-
class ModelsRepresents the available models returned by the Ollama API.
-
class PullRepresents the response from pulling models from the Ollama API.
-
class ToolRepresents a tool that can be registered and called by the Toolbox.
-
class ToolboxManages a collection of tools and dispatches calls to them.
-
class StreamingParserParses streaming HTTP responses for Ollama, buffering and extracting JSON lines.
-
class StreamingResponseParserParses streaming responses for the Ollama API, collecting the response string.
-
class StreamingMessageParserParses streaming message responses for the Ollama API, collecting message content.
-
class WrapperWraps HTTP requests and responses for the Ollama API, handling content negotiation and parsing.
-
class GenerateWrapperWraps generate-specific HTTP responses for the Ollama API, selecting the appropriate parser.
-
class ChatWrapperWraps chat-specific HTTP responses for the Ollama API, selecting the appropriate parser.
-
-