class Riffer::Providers::Anthropic
Anthropic provider for Claude models via the Anthropic API. Requires the anthropic gem.
Constants
- FINISH_REASONS
- WEB_SEARCH_TOOL_TYPE
Public Class Methods
Source
# File lib/riffer/providers/anthropic.rb, line 34 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 28 def self.semconv_provider_name "anthropic" end
The GenAI semconv well-known provider name.
Source
# File lib/riffer/providers/anthropic.rb, line 21 def self.skills_adapter(model = nil) Riffer::Skills::XmlAdapter end
Returns the XML skill adapter for Anthropic/Claude.