Class: Riffer::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/riffer/config.rb

Overview

Configuration for the Riffer framework.

Provides configuration options for AI providers and other settings.

Riffer.config.openai.api_key = "sk-..."

Riffer.config.amazon_bedrock.region = "us-east-1"
Riffer.config.amazon_bedrock.api_token = "..."

Riffer.config.anthropic.api_key = "sk-ant-..."

Riffer.config.evals.judge_model = "anthropic/claude-sonnet-4-20250514"

Defined Under Namespace

Classes: AmazonBedrock, Anthropic, Evals, OpenAI

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

: () -> void



36
37
38
39
40
41
# File 'lib/riffer/config.rb', line 36

def initialize
  @amazon_bedrock = AmazonBedrock.new
  @anthropic = Anthropic.new
  @openai = OpenAI.new
  @evals = Evals.new
end

Instance Attribute Details

#amazon_bedrockObject (readonly)

Amazon Bedrock configuration (Struct with api_token and region).



24
25
26
# File 'lib/riffer/config.rb', line 24

def amazon_bedrock
  @amazon_bedrock
end

#anthropicObject (readonly)

Anthropic configuration (Struct with api_key).



27
28
29
# File 'lib/riffer/config.rb', line 27

def anthropic
  @anthropic
end

#evalsObject (readonly)

Evals configuration (Struct with judge_model).



33
34
35
# File 'lib/riffer/config.rb', line 33

def evals
  @evals
end

#openaiObject (readonly)

OpenAI configuration (Struct with api_key).



30
31
32
# File 'lib/riffer/config.rb', line 30

def openai
  @openai
end