class ActiveGenie::Configuration::Providers::AnthropicConfig

Manages API keys, URLs, model selections, and client instantiation.
Configuration class for the Anthropic API client.

def api_key

Returns:
  • (String, nil) - The API key.
def api_key
  @api_key || ENV['ANTHROPIC_API_KEY']
end

def api_url

Returns:
  • (String) - The API base URL.
def api_url
  @api_url || 'https://api.anthropic.com'
end

def client

Returns:
  • (ActiveGenie::Clients::AnthropicClient) - The client instance.
def client
  @client ||= ::ActiveGenie::Clients::AnthropicClient.new(self)
end

def lower_tier_model

Returns:
  • (String) - The lower tier model name.
def lower_tier_model
  @lower_tier_model || 'claude-3-5-haiku-20241022'
end

def middle_tier_model

Returns:
  • (String) - The middle tier model name.
def middle_tier_model
  @middle_tier_model || 'claude-3-7-sonnet-20250219'
end

def upper_tier_model

Returns:
  • (String) - The upper tier model name.
def upper_tier_model
  @upper_tier_model || 'claude-3-opus-20240229'
end