Module: Ollama

Includes:
Handlers
Defined in:
lib/ollama.rb,
lib/ollama.rb,
lib/ollama/errors.rb,
lib/ollama/version.rb

Overview

The main module for the Ollama Ruby client library.

This module serves as the root namespace for all components of the Ollama client library, providing access to core classes and functionality for interacting with the Ollama API. It includes handlers, commands, data transfer objects, and utility classes that enable communication with Ollama servers.

Examples:

Accessing core components

Ollama::Client
Ollama::Handlers
Ollama::Commands
Ollama::DTO

Defined Under Namespace

Modules: DTO, Errors, Handlers, JSONLoader Classes: Client, Commands, Image, Message, Options, Response, Tool

Constant Summary collapse

VERSION =

Ollama version

'1.10.1'
VERSION_ARRAY =

:nodoc:

VERSION.split('.').map(&:to_i)
VERSION_MAJOR =

:nodoc:

VERSION_ARRAY[0]
VERSION_MINOR =

:nodoc:

VERSION_ARRAY[1]
VERSION_BUILD =

:nodoc:

VERSION_ARRAY[2]