Class: EvalRuby::Configuration
- Inherits:
-
Object
- Object
- EvalRuby::Configuration
- Defined in:
- lib/eval_ruby/configuration.rb
Overview
Global configuration for EvalRuby.
Instance Attribute Summary collapse
-
#api_key ⇒ String?
API key for the judge LLM provider.
-
#default_threshold ⇒ Float
Default threshold for pass/fail decisions.
-
#judge_llm ⇒ Symbol
LLM provider for judge (:openai or :anthropic).
-
#judge_model ⇒ String
Model name for the judge LLM.
-
#max_retries ⇒ Integer
Maximum number of retries on transient failures.
-
#timeout ⇒ Integer
HTTP request timeout in seconds.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
31 32 33 34 35 36 37 38 |
# File 'lib/eval_ruby/configuration.rb', line 31 def initialize @judge_llm = :openai @judge_model = "gpt-4o" @api_key = nil @default_threshold = 0.7 @timeout = 30 @max_retries = 3 end |
Instance Attribute Details
#api_key ⇒ String?
Returns API key for the judge LLM provider.
20 21 22 |
# File 'lib/eval_ruby/configuration.rb', line 20 def api_key @api_key end |
#default_threshold ⇒ Float
Returns default threshold for pass/fail decisions.
23 24 25 |
# File 'lib/eval_ruby/configuration.rb', line 23 def default_threshold @default_threshold end |
#judge_llm ⇒ Symbol
Returns LLM provider for judge (:openai or :anthropic).
14 15 16 |
# File 'lib/eval_ruby/configuration.rb', line 14 def judge_llm @judge_llm end |
#judge_model ⇒ String
Returns model name for the judge LLM.
17 18 19 |
# File 'lib/eval_ruby/configuration.rb', line 17 def judge_model @judge_model end |
#max_retries ⇒ Integer
Returns maximum number of retries on transient failures.
29 30 31 |
# File 'lib/eval_ruby/configuration.rb', line 29 def max_retries @max_retries end |
#timeout ⇒ Integer
Returns HTTP request timeout in seconds.
26 27 28 |
# File 'lib/eval_ruby/configuration.rb', line 26 def timeout @timeout end |