AnthropicConfig

org.llm4s.llmconnect.config.AnthropicConfig
See theAnthropicConfig companion class

Attributes

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

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromValues(modelName: String, apiKey: String, baseUrl: String): AnthropicConfig

Constructs an AnthropicConfig, resolving contextWindow and reserveCompletion from the model name automatically.

Constructs an AnthropicConfig, resolving contextWindow and reserveCompletion from the model name automatically.

Value parameters

apiKey

Anthropic API key; must be non-empty.

baseUrl

API base URL; must be non-empty.

modelName

Model identifier, e.g. "claude-sonnet-4-5-latest".

Attributes