Package-level declarations

Types

Link copied to clipboard
class AnthropicClientSettings(val modelVersionsMap: Map<LLModel, String> = DEFAULT_ANTHROPIC_MODEL_VERSIONS_MAP, val baseUrl: String = "https://api.anthropic.com", val apiVersion: String = "2023-06-01", val timeoutConfig: ConnectionTimeoutConfig = ConnectionTimeoutConfig())

Represents the settings for configuring an Anthropic client, including model mapping, base URL, and API version.

Link copied to clipboard
open class AnthropicLLMClient(apiKey: String, settings: AnthropicClientSettings = AnthropicClientSettings(), baseClient: HttpClient = HttpClient(), clock: Clock = Clock.System) : LLMClient

A client implementation for interacting with Anthropic's API in a suspendable and direct manner.

Link copied to clipboard

Anthropic models for text generation and embeddings.

Link copied to clipboard
class AnthropicParams(temperature: Double? = null, maxTokens: Int? = null, numberOfChoices: Int? = null, speculation: String? = null, schema: LLMParams.Schema? = null, toolChoice: LLMParams.ToolChoice? = null, user: String? = null, additionalProperties: Map<String, JsonElement>? = null, val topP: Double? = null, val topK: Int? = null, val stopSequences: List<String>? = null, val container: String? = null, val mcpServers: List<AnthropicMCPServerURLDefinition>? = null, val serviceTier: AnthropicServiceTier? = null, val thinking: AnthropicThinking? = null) : LLMParams

Anthropic Messages API parameters layered on top of LLMParams.