Class: DSPy::Registry::RegistryManager::RegistryIntegrationConfig

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dspy/registry/registry_manager.rb

Overview

Configuration for automatic registry integration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRegistryIntegrationConfig

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_versionsObject

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_thresholdObject

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_optimizationsObject

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_strategyObject

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_dropObject

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_thresholdObject

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_hObject



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