Overview
-
module Async
-
module Ollama
-
class Chat
Represents a chat response from the Ollama API, including message content, model, and timing information.
-
class Client
Represents a connection to the Ollama service, providing methods to generate completions, chat, and list models.
-
class Conversation
Represents a conversation with the Ollama API, managing messages, tool calls, and summarization.
-
class ChatError
Raised when a chat error occurs during the conversation.
-
-
class Generate
Represents a generated response from the Ollama API.
-
class Models
Represents the available models returned by the Ollama API.
-
class Pull
Represents the response from pulling models from the Ollama API.
-
class Tool
Represents a tool that can be registered and called by the Toolbox.
-
class Toolbox
Manages a collection of tools and dispatches calls to them.
-
class StreamingParser
Parses streaming HTTP responses for Ollama, buffering and extracting JSON lines.
-
class StreamingResponseParser
Parses streaming responses for the Ollama API, collecting the response string.
-
class StreamingMessageParser
Parses streaming message responses for the Ollama API, collecting message content.
-
class Wrapper
Wraps HTTP requests and responses for the Ollama API, handling content negotiation and parsing.
-
class GenerateWrapper
Wraps generate-specific HTTP responses for the Ollama API, selecting the appropriate parser.
-
class ChatWrapper
Wraps chat-specific HTTP responses for the Ollama API, selecting the appropriate parser.
-
-