Package-level declarations
Types
Link copied to clipboard
class AnthropicChatModel(client: HttpClient, apiKey: String, model: String, maxTokens: Int = DEFAULT_MAX_TOKENS, parameters: JsonObject = JsonObject(emptyMap()), headers: Map<String, String> = emptyMap(), baseUrl: String = "https://api.anthropic.com", timeout: Duration? = 5.minutes) : ChatModel
A ChatModel that calls Claude through the Messages API of Anthropic. It is built on Ktor, so it runs on every Kotlin target.