Class: Legion::Extensions::Agentic::Homeostasis::Temporal::Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Runners::Temporal

#check_deadlines, #elapsed_since, #mark_event, #predict_event, #set_deadline, #temporal_patterns, #temporal_stats, #update_time_perception

Constructor Details

#initialize(temporal_store: nil) ⇒ Client

Returns a new instance of Client.



13
14
15
# File 'lib/legion/extensions/agentic/homeostasis/temporal/client.rb', line 13

def initialize(temporal_store: nil, **)
  @temporal_store = temporal_store || Helpers::TemporalStore.new
end

Instance Attribute Details

#temporal_storeObject (readonly)

Returns the value of attribute temporal_store.



11
12
13
# File 'lib/legion/extensions/agentic/homeostasis/temporal/client.rb', line 11

def temporal_store
  @temporal_store
end