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.
Instance Attribute Summary collapse
-
#amazon_bedrock ⇒ Struct
readonly
Amazon Bedrock configuration.
-
#openai ⇒ Struct
readonly
OpenAI configuration.
Instance Method Summary collapse
-
#initialize ⇒ void
constructor
Initializes the configuration.
Constructor Details
#initialize ⇒ void
Initializes the configuration
24 25 26 27 |
# File 'lib/riffer/config.rb', line 24 def initialize @openai = Struct.new(:api_key).new @amazon_bedrock = Struct.new(:api_token, :region).new end |
Instance Attribute Details
#amazon_bedrock ⇒ Struct (readonly)
Amazon Bedrock configuration
20 21 22 |
# File 'lib/riffer/config.rb', line 20 def amazon_bedrock @amazon_bedrock end |
#openai ⇒ Struct (readonly)
OpenAI configuration
16 17 18 |
# File 'lib/riffer/config.rb', line 16 def openai @openai end |