AnthropicKoogProperties

@ConfigurationProperties(prefix = "ai.koog.anthropic", ignoreUnknownFields = true)
class AnthropicKoogProperties(val enabled: Boolean, val apiKey: String, val baseUrl: String, val retry: RetryConfigKoogProperties? = null) : KoogLlmClientProperties(source)

Configuration properties for configuring Anthropic-related clients in the Koog framework.

This class allows defining settings necessary for integrating with the Anthropic LLM (Large Language Model) client. It implements KoogLlmClientProperties and includes common LLM client configurations such as enabled, baseUrl, and retry options. Additionally, it includes the apiKey property specific to the Anthropic client.

The properties are bound to the configuration prefix defined by AnthropicKoogProperties.PREFIX, which is ai.koog.anthropic. This allows configuring the client via property files in a Spring Boot application.

Constructors

Link copied to clipboard
constructor(enabled: Boolean, apiKey: String, baseUrl: String, retry: RetryConfigKoogProperties? = null)

Types

Link copied to clipboard
object Companion

Companion object providing constant value associated with the configuration of Anthropic-related properties.

Properties

Link copied to clipboard

The API key used to authenticate requests to the Anthropic API.

Link copied to clipboard
open override val baseUrl: String

The base URL of the Anthropic API for sending requests.

Link copied to clipboard
open override val enabled: Boolean

Indicates whether the Anthropic client is enabled. If false, the client will not be configured.

Link copied to clipboard
open override val retry: RetryConfigKoogProperties? = null

Retry configuration for the client in case of failed or timeout requests. This is optional.

Functions

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the AnthropicKoogProperties object.