class Riffer::Providers::Anthropic
Anthropic provider for Claude models via the Anthropic API.
Requires the anthropic gem to be installed.
Constants
- WEB_SEARCH_TOOL_TYPE
Public Class Methods
Source
# File lib/riffer/providers/anthropic.rb, line 24 def initialize(api_key: nil, **options) depends_on "anthropic" api_key ||= Riffer.config.anthropic.api_key @client = Anthropic::Client.new(api_key: api_key, **options) end
Initializes the Anthropic provider.
Source
# File lib/riffer/providers/anthropic.rb, line 16 def self.skills_adapter Riffer::Skills::XmlAdapter end
Returns the XML skill adapter for Anthropic/Claude.