class Riffer::Config
rbs_inline: enabled
Constants
- VALID_MESSAGE_ID_STRATEGIES
Attributes
When not :none, seeded messages passed to +Riffer::Agent#generate+ must carry their own id.
Public Class Methods
Source
# File lib/riffer/config.rb, line 62 def initialize @amazon_bedrock = AmazonBedrock.new @anthropic = Anthropic.new @azure_openai = AzureOpenAI.new @gemini = Gemini.new @openai = OpenAI.new @openrouter = OpenRouter.new @evals = Evals.new @mcp = Mcp.new @tool_runtime = Riffer::Tools::Runtime::Inline.new @skills = Skills.new @tracing = Tracing.new @files = Files.new @pricing = Pricing.new @message_id_strategy = :none end
Public Instance Methods
Source
# File lib/riffer/config.rb, line 52 def message_id_strategy=(value) unless VALID_MESSAGE_ID_STRATEGIES.include?(value) raise Riffer::ArgumentError, "message_id_strategy must be one of #{VALID_MESSAGE_ID_STRATEGIES.inspect}, got #{value.inspect}" end @message_id_strategy = value end
Source
# File lib/riffer/config.rb, line 27 def tool_runtime=(value) valid = (value.is_a?(Class) && value < Riffer::Tools::Runtime) || value.is_a?(Riffer::Tools::Runtime) || value.is_a?(Proc) unless valid raise Riffer::ArgumentError, "tool_runtime must be a Riffer::Tools::Runtime subclass, instance, or a Proc" end @tool_runtime = value end