Class: FeatherAi::Configuration
- Inherits:
-
Object
- Object
- FeatherAi::Configuration
- Defined in:
- lib/feather_ai/configuration.rb
Overview
Configuration object for FeatherAi gem settings.
Instance Attribute Summary collapse
-
#consensus_models ⇒ Object
Returns the value of attribute consensus_models.
-
#location ⇒ Object
Returns the value of attribute location.
-
#media_resolution ⇒ Object
Returns the value of attribute media_resolution.
-
#model ⇒ Object
Returns the value of attribute model.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#tips_model ⇒ Object
Returns the value of attribute tips_model.
-
#tools ⇒ Object
Returns the value of attribute tools.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #initialize_copy(source) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 16 |
# File 'lib/feather_ai/configuration.rb', line 8 def initialize @provider = :anthropic @model = "claude-sonnet-4-5" @location = nil @consensus_models = %w[claude-sonnet-4-5 claude-haiku-4-5] @tips_model = "claude-haiku-4-5" @media_resolution = :high @tools = [] end |
Instance Attribute Details
#consensus_models ⇒ Object
Returns the value of attribute consensus_models.
6 7 8 |
# File 'lib/feather_ai/configuration.rb', line 6 def consensus_models @consensus_models end |
#location ⇒ Object
Returns the value of attribute location.
6 7 8 |
# File 'lib/feather_ai/configuration.rb', line 6 def location @location end |
#media_resolution ⇒ Object
Returns the value of attribute media_resolution.
6 7 8 |
# File 'lib/feather_ai/configuration.rb', line 6 def media_resolution @media_resolution end |
#model ⇒ Object
Returns the value of attribute model.
6 7 8 |
# File 'lib/feather_ai/configuration.rb', line 6 def model @model end |
#provider ⇒ Object
Returns the value of attribute provider.
6 7 8 |
# File 'lib/feather_ai/configuration.rb', line 6 def provider @provider end |
#tips_model ⇒ Object
Returns the value of attribute tips_model.
6 7 8 |
# File 'lib/feather_ai/configuration.rb', line 6 def tips_model @tips_model end |
#tools ⇒ Object
Returns the value of attribute tools.
6 7 8 |
# File 'lib/feather_ai/configuration.rb', line 6 def tools @tools end |
Instance Method Details
#initialize_copy(source) ⇒ Object
18 19 20 21 22 |
# File 'lib/feather_ai/configuration.rb', line 18 def initialize_copy(source) super @consensus_models = source.consensus_models.dup @tools = source.tools.dup end |