Class: Botrytis::Configuration
- Inherits:
-
Object
- Object
- Botrytis::Configuration
- Defined in:
- lib/botrytis/configuration.rb
Instance Attribute Summary collapse
-
#cache_directory ⇒ Object
Returns the value of attribute cache_directory.
-
#cache_enabled ⇒ Object
Returns the value of attribute cache_enabled.
-
#confidence_threshold ⇒ Object
Returns the value of attribute confidence_threshold.
-
#llm_provider ⇒ Object
Returns the value of attribute llm_provider.
-
#model_name ⇒ Object
Returns the value of attribute model_name.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_directory ⇒ Object
Returns the value of attribute cache_directory.
3 4 5 |
# File 'lib/botrytis/configuration.rb', line 3 def cache_directory @cache_directory end |
#cache_enabled ⇒ Object
Returns the value of attribute cache_enabled.
3 4 5 |
# File 'lib/botrytis/configuration.rb', line 3 def cache_enabled @cache_enabled end |
#confidence_threshold ⇒ Object
Returns the value of attribute confidence_threshold.
3 4 5 |
# File 'lib/botrytis/configuration.rb', line 3 def confidence_threshold @confidence_threshold end |
#llm_provider ⇒ Object
Returns the value of attribute llm_provider.
3 4 5 |
# File 'lib/botrytis/configuration.rb', line 3 def llm_provider @llm_provider end |
#model_name ⇒ Object
Returns the value of attribute model_name.
3 4 5 |
# File 'lib/botrytis/configuration.rb', line 3 def model_name @model_name end |