Class: Legion::Extensions::Agentic::Homeostasis::Core::Client

Inherits:
Object
  • Object
show all
Includes:
Runners::Homeostasis
Defined in:
lib/legion/extensions/agentic/homeostasis/core/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_loadObject (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

#regulatorObject (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