Class: FeatherAi::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/feather_ai/configuration.rb

Overview

Configuration object for FeatherAi gem settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_modelsObject

Returns the value of attribute consensus_models.



6
7
8
# File 'lib/feather_ai/configuration.rb', line 6

def consensus_models
  @consensus_models
end

#locationObject

Returns the value of attribute location.



6
7
8
# File 'lib/feather_ai/configuration.rb', line 6

def location
  @location
end

#media_resolutionObject

Returns the value of attribute media_resolution.



6
7
8
# File 'lib/feather_ai/configuration.rb', line 6

def media_resolution
  @media_resolution
end

#modelObject

Returns the value of attribute model.



6
7
8
# File 'lib/feather_ai/configuration.rb', line 6

def model
  @model
end

#providerObject

Returns the value of attribute provider.



6
7
8
# File 'lib/feather_ai/configuration.rb', line 6

def provider
  @provider
end

#tips_modelObject

Returns the value of attribute tips_model.



6
7
8
# File 'lib/feather_ai/configuration.rb', line 6

def tips_model
  @tips_model
end

#toolsObject

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