Class: Botrytis::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
11
# File 'lib/botrytis/configuration.rb', line 5

def initialize
  @llm_provider = :openai
  @model_name = "gpt-4o"
  @confidence_threshold = 0.7
  @cache_enabled = true
  @cache_directory = File.join(Dir.pwd, ".botrytis_cache")
end

Instance Attribute Details

#cache_directoryObject

Returns the value of attribute cache_directory.



3
4
5
# File 'lib/botrytis/configuration.rb', line 3

def cache_directory
  @cache_directory
end

#cache_enabledObject

Returns the value of attribute cache_enabled.



3
4
5
# File 'lib/botrytis/configuration.rb', line 3

def cache_enabled
  @cache_enabled
end

#confidence_thresholdObject

Returns the value of attribute confidence_threshold.



3
4
5
# File 'lib/botrytis/configuration.rb', line 3

def confidence_threshold
  @confidence_threshold
end

#llm_providerObject

Returns the value of attribute llm_provider.



3
4
5
# File 'lib/botrytis/configuration.rb', line 3

def llm_provider
  @llm_provider
end

#model_nameObject

Returns the value of attribute model_name.



3
4
5
# File 'lib/botrytis/configuration.rb', line 3

def model_name
  @model_name
end