struct

Anthropic::Configuration

Inherits Struct < Value < Object

Constants

DEFAULT_API_VERSION = "2023-06-01"
DEFAULT_BASE_URL = "https://api.anthropic.com"
DEFAULT_POOL_SIZE = 10
DEFAULT_TIMEOUT = 120.seconds

Constructors

new(api_key : String | Nil = nil, base_url : String = ENV["ANTHROPIC_BASE_URL"]? || DEFAULT_BASE_URL, api_version : String = DEFAULT_API_VERSION, timeout : Time::Span = DEFAULT_TIMEOUT, max_pool_size : Int32 = DEFAULT_POOL_SIZE, retry_policy : RetryPolicy = RetryPolicy.default, beta_headers : Array(String) = [] of String)
Source

Instance methods

api_key
Source
api_version
Source
base_url
Source
beta_headers

Returns a copy of the beta headers to prevent external mutation.

Source
max_pool_size
Source
retry_policy
Source
timeout
Source