class Riffer::Providers::Anthropic
Anthropic provider for Claude models via the Anthropic API. Requires the anthropic gem.
Constants
- WEB_SEARCH_TOOL_TYPE
Public Class Methods
Source
# File lib/riffer/providers/anthropic.rb, line 19 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
Source
# File lib/riffer/providers/anthropic.rb, line 13 def self.skills_adapter(model = nil) Riffer::Skills::XmlAdapter end
Returns the XML skill adapter for Anthropic/Claude.