Class: Legion::Extensions::Agentic::Self::Reflection::Client

Inherits:
Object
  • Object
show all
Includes:
Runners::Reflection
Defined in:
lib/legion/extensions/agentic/self/reflection/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Runners::Reflection

#adapt, #cognitive_health, #recent_reflections, #reflect, #reflect_on_dream, #reflection_stats, #reflections_by_category

Constructor Details

#initialize(store: nil) ⇒ Client

Returns a new instance of Client.



19
20
21
# File 'lib/legion/extensions/agentic/self/reflection/client.rb', line 19

def initialize(store: nil, **)
  @reflection_store = store || Helpers::ReflectionStore.new
end

Instance Attribute Details

#reflection_storeObject (readonly)

Returns the value of attribute reflection_store.



17
18
19
# File 'lib/legion/extensions/agentic/self/reflection/client.rb', line 17

def reflection_store
  @reflection_store
end