Class: OmniAgent::Configuration
- Inherits:
-
Object
- Object
- OmniAgent::Configuration
- Defined in:
- lib/omni_agent/configuration.rb
Instance Attribute Summary collapse
-
#default_model ⇒ Object
Returns the value of attribute default_model.
-
#default_provider ⇒ Object
Returns the value of attribute default_provider.
-
#eval_cache_enabled ⇒ Object
Returns the value of attribute eval_cache_enabled.
-
#eval_cache_path ⇒ Object
Returns the value of attribute eval_cache_path.
-
#eval_judge_model ⇒ Object
Returns the value of attribute eval_judge_model.
-
#eval_judge_provider ⇒ Object
Returns the value of attribute eval_judge_provider.
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
-
#max_tool_iterations ⇒ Object
Returns the value of attribute max_tool_iterations.
-
#retry_base_delay ⇒ Object
Returns the value of attribute retry_base_delay.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/omni_agent/configuration.rb', line 6 def initialize @default_provider = :openai @default_model = "gpt-4o-mini" @max_retries = 3 @retry_base_delay = 0.5 @max_tool_iterations = 10 @eval_judge_provider = nil @eval_judge_model = nil @eval_cache_enabled = true @eval_cache_path = "tmp/omni_agent_eval_cache.json" end |
Instance Attribute Details
#default_model ⇒ Object
Returns the value of attribute default_model.
3 4 5 |
# File 'lib/omni_agent/configuration.rb', line 3 def default_model @default_model end |
#default_provider ⇒ Object
Returns the value of attribute default_provider.
3 4 5 |
# File 'lib/omni_agent/configuration.rb', line 3 def default_provider @default_provider end |
#eval_cache_enabled ⇒ Object
Returns the value of attribute eval_cache_enabled.
3 4 5 |
# File 'lib/omni_agent/configuration.rb', line 3 def eval_cache_enabled @eval_cache_enabled end |
#eval_cache_path ⇒ Object
Returns the value of attribute eval_cache_path.
3 4 5 |
# File 'lib/omni_agent/configuration.rb', line 3 def eval_cache_path @eval_cache_path end |
#eval_judge_model ⇒ Object
Returns the value of attribute eval_judge_model.
3 4 5 |
# File 'lib/omni_agent/configuration.rb', line 3 def eval_judge_model @eval_judge_model end |
#eval_judge_provider ⇒ Object
Returns the value of attribute eval_judge_provider.
3 4 5 |
# File 'lib/omni_agent/configuration.rb', line 3 def eval_judge_provider @eval_judge_provider end |
#max_retries ⇒ Object
Returns the value of attribute max_retries.
3 4 5 |
# File 'lib/omni_agent/configuration.rb', line 3 def max_retries @max_retries end |
#max_tool_iterations ⇒ Object
Returns the value of attribute max_tool_iterations.
3 4 5 |
# File 'lib/omni_agent/configuration.rb', line 3 def max_tool_iterations @max_tool_iterations end |
#retry_base_delay ⇒ Object
Returns the value of attribute retry_base_delay.
3 4 5 |
# File 'lib/omni_agent/configuration.rb', line 3 def retry_base_delay @retry_base_delay end |