AnthropicClient

org.llm4s.llmconnect.provider.AnthropicClient
See theAnthropicClient companion class

Attributes

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

Members list

Value members

Concrete methods

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

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

Value parameters

config

AnthropicConfig with API key, model, and base URL.

metrics

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

Attributes

Returns

Right(client) on success; Left(LLMError) if the underlying SDK client cannot be initialised.