Class: DSPy::Registry::RegistryManager::RegistryIntegrationConfig
- Inherits:
-
Object
- Object
- DSPy::Registry::RegistryManager::RegistryIntegrationConfig
- Extended by:
- T::Sig
- Defined in:
- lib/dspy/registry/registry_manager.rb
Overview
Configuration for automatic registry integration
Instance Attribute Summary collapse
-
#auto_deploy_best_versions ⇒ Object
Returns the value of attribute auto_deploy_best_versions.
-
#auto_deploy_threshold ⇒ Object
Returns the value of attribute auto_deploy_threshold.
-
#auto_register_optimizations ⇒ Object
Returns the value of attribute auto_register_optimizations.
-
#deployment_strategy ⇒ Object
Returns the value of attribute deployment_strategy.
-
#rollback_on_performance_drop ⇒ Object
Returns the value of attribute rollback_on_performance_drop.
-
#rollback_threshold ⇒ Object
Returns the value of attribute rollback_threshold.
Instance Method Summary collapse
-
#initialize ⇒ RegistryIntegrationConfig
constructor
A new instance of RegistryIntegrationConfig.
- #to_h ⇒ Object
Constructor Details
#initialize ⇒ RegistryIntegrationConfig
Returns a new instance of RegistryIntegrationConfig.
36 37 38 39 40 41 42 43 |
# File 'lib/dspy/registry/registry_manager.rb', line 36 def initialize @auto_register_optimizations = true @auto_deploy_best_versions = false @auto_deploy_threshold = 0.1 # 10% improvement @rollback_on_performance_drop = true @rollback_threshold = 0.05 # 5% drop @deployment_strategy = "conservative" # conservative, aggressive, manual end |
Instance Attribute Details
#auto_deploy_best_versions ⇒ Object
Returns the value of attribute auto_deploy_best_versions.
21 22 23 |
# File 'lib/dspy/registry/registry_manager.rb', line 21 def auto_deploy_best_versions @auto_deploy_best_versions end |
#auto_deploy_threshold ⇒ Object
Returns the value of attribute auto_deploy_threshold.
24 25 26 |
# File 'lib/dspy/registry/registry_manager.rb', line 24 def auto_deploy_threshold @auto_deploy_threshold end |
#auto_register_optimizations ⇒ Object
Returns the value of attribute auto_register_optimizations.
18 19 20 |
# File 'lib/dspy/registry/registry_manager.rb', line 18 def auto_register_optimizations @auto_register_optimizations end |
#deployment_strategy ⇒ Object
Returns the value of attribute deployment_strategy.
33 34 35 |
# File 'lib/dspy/registry/registry_manager.rb', line 33 def deployment_strategy @deployment_strategy end |
#rollback_on_performance_drop ⇒ Object
Returns the value of attribute rollback_on_performance_drop.
27 28 29 |
# File 'lib/dspy/registry/registry_manager.rb', line 27 def rollback_on_performance_drop @rollback_on_performance_drop end |
#rollback_threshold ⇒ Object
Returns the value of attribute rollback_threshold.
30 31 32 |
# File 'lib/dspy/registry/registry_manager.rb', line 30 def rollback_threshold @rollback_threshold end |
Instance Method Details
#to_h ⇒ Object
46 47 48 49 50 51 52 53 54 55 |
# File 'lib/dspy/registry/registry_manager.rb', line 46 def to_h { auto_register_optimizations: @auto_register_optimizations, auto_deploy_best_versions: @auto_deploy_best_versions, auto_deploy_threshold: @auto_deploy_threshold, rollback_on_performance_drop: @rollback_on_performance_drop, rollback_threshold: @rollback_threshold, deployment_strategy: @deployment_strategy } end |