OllamaClient

org.llm4s.llmconnect.provider.OllamaClient
See theOllamaClient companion class
object OllamaClient

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(config: OllamaConfig, metrics: MetricsCollector, exchangeLogging: ProviderExchangeLogging): Result[OllamaClient]

Constructs an OllamaClient, wrapping any construction-time exception in a Left.

Constructs an OllamaClient, wrapping any construction-time exception in a Left.

Value parameters

config

Ollama configuration with model name and server base URL.

metrics

Receives per-call latency and token-usage events. Defaults to MetricsCollector.noop.

Attributes

Returns

Right(client) on success; Left(LLMError) if construction fails (e.g. invalid base URL).