Class: Riffer::Config
- Inherits:
-
Object
- Object
- Riffer::Config
- 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
-
#amazon_bedrock ⇒ Object
readonly
Amazon Bedrock configuration (Struct with
api_tokenandregion). -
#anthropic ⇒ Object
readonly
Anthropic configuration (Struct with
api_key). -
#evals ⇒ Object
readonly
Evals configuration (Struct with
judge_model). -
#openai ⇒ Object
readonly
OpenAI configuration (Struct with
api_key).
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
: () -> void.
Constructor Details
#initialize ⇒ Config
: () -> 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_bedrock ⇒ Object (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 |
#anthropic ⇒ Object (readonly)
Anthropic configuration (Struct with api_key).
27 28 29 |
# File 'lib/riffer/config.rb', line 27 def anthropic @anthropic end |
#evals ⇒ Object (readonly)
Evals configuration (Struct with judge_model).
33 34 35 |
# File 'lib/riffer/config.rb', line 33 def evals @evals end |
#openai ⇒ Object (readonly)
OpenAI configuration (Struct with api_key).
30 31 32 |
# File 'lib/riffer/config.rb', line 30 def openai @openai end |