Class: AISpec::Configuration
- Inherits:
-
Object
- Object
- AISpec::Configuration
- Defined in:
- lib/aispec/configuration.rb
Instance Attribute Summary collapse
-
#cache_enabled ⇒ Object
Returns the value of attribute cache_enabled.
-
#default_model ⇒ Object
Returns the value of attribute default_model.
-
#default_provider ⇒ Object
Returns the value of attribute default_provider.
-
#judge_model ⇒ Object
Returns the value of attribute judge_model.
-
#judge_provider ⇒ Object
Returns the value of attribute judge_provider.
-
#reporters ⇒ Object
Returns the value of attribute reporters.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 16 |
# File 'lib/aispec/configuration.rb', line 8 def initialize @default_provider = "mock" @default_model = "default" @judge_provider = "openai" @judge_model = "gpt-4o" @timeout = 30 @cache_enabled = false @reporters = [:console] end |
Instance Attribute Details
#cache_enabled ⇒ Object
Returns the value of attribute cache_enabled.
5 6 7 |
# File 'lib/aispec/configuration.rb', line 5 def cache_enabled @cache_enabled end |
#default_model ⇒ Object
Returns the value of attribute default_model.
5 6 7 |
# File 'lib/aispec/configuration.rb', line 5 def default_model @default_model end |
#default_provider ⇒ Object
Returns the value of attribute default_provider.
5 6 7 |
# File 'lib/aispec/configuration.rb', line 5 def default_provider @default_provider end |
#judge_model ⇒ Object
Returns the value of attribute judge_model.
5 6 7 |
# File 'lib/aispec/configuration.rb', line 5 def judge_model @judge_model end |
#judge_provider ⇒ Object
Returns the value of attribute judge_provider.
5 6 7 |
# File 'lib/aispec/configuration.rb', line 5 def judge_provider @judge_provider end |
#reporters ⇒ Object
Returns the value of attribute reporters.
5 6 7 |
# File 'lib/aispec/configuration.rb', line 5 def reporters @reporters end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/aispec/configuration.rb', line 5 def timeout @timeout end |