AnthropicLLMClient

constructor(settings: AnthropicClientSettings = AnthropicClientSettings(), httpClient: KoogHttpClient, clock: KoogClock = KoogClock.System)(source)

Parameters

settings

Configurable settings for the Anthropic client, which include the base URL and other options.

httpClient

A preconfigured Koog HTTP client used for API calls. Must have authentication and other request defaults already embedded. To create a client with standard defaults, use the secondary constructor that accepts an API key and a KoogHttpClient.Factory.

clock

Clock instance used for tracking response metadata timestamps.


constructor(apiKey: String, settings: AnthropicClientSettings = AnthropicClientSettings(), httpClientFactory: KoogHttpClient.Factory, clock: KoogClock = KoogClock.System)(source)

Secondary constructor for creating an Anthropic client from an HTTP client factory.