Class: Legion::Extensions::Agentic::Homeostasis::Core::Client
- Inherits:
-
Object
- Object
- Legion::Extensions::Agentic::Homeostasis::Core::Client
- Includes:
- Runners::Homeostasis
- Defined in:
- lib/legion/extensions/agentic/homeostasis/core/client.rb
Instance Attribute Summary collapse
-
#allostatic_load ⇒ Object
readonly
Returns the value of attribute allostatic_load.
-
#regulator ⇒ Object
readonly
Returns the value of attribute regulator.
Instance Method Summary collapse
-
#initialize(regulator: nil, allostatic_load: nil) ⇒ Client
constructor
A new instance of Client.
Methods included from Runners::Homeostasis
#allostatic_status, #homeostasis_stats, #modulation_for, #regulate, #regulation_overview
Constructor Details
#initialize(regulator: nil, allostatic_load: nil) ⇒ Client
Returns a new instance of Client.
13 14 15 16 |
# File 'lib/legion/extensions/agentic/homeostasis/core/client.rb', line 13 def initialize(regulator: nil, allostatic_load: nil, **) @regulator = regulator || Helpers::Regulator.new @allostatic_load = allostatic_load || Helpers::AllostaticLoad.new end |
Instance Attribute Details
#allostatic_load ⇒ Object (readonly)
Returns the value of attribute allostatic_load.
11 12 13 |
# File 'lib/legion/extensions/agentic/homeostasis/core/client.rb', line 11 def allostatic_load @allostatic_load end |
#regulator ⇒ Object (readonly)
Returns the value of attribute regulator.
11 12 13 |
# File 'lib/legion/extensions/agentic/homeostasis/core/client.rb', line 11 def regulator @regulator end |