Class: Legion::Extensions::Agentic::Learning::Habit::Client

Inherits:
Object
  • Object
show all
Includes:
Runners::Habit
Defined in:
lib/legion/extensions/agentic/learning/habit/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Runners::Habit

#decay_habits, #execute_habit, #habit_repertoire, #habit_stats, #merge_habits, #observe_action, #suggest_habit

Constructor Details

#initialize(habit_store: nil) ⇒ Client

Returns a new instance of Client.



18
19
20
# File 'lib/legion/extensions/agentic/learning/habit/client.rb', line 18

def initialize(habit_store: nil, **)
  @habit_store = habit_store || Helpers::HabitStore.new
end

Instance Attribute Details

#habit_storeObject (readonly)

Returns the value of attribute habit_store.



16
17
18
# File 'lib/legion/extensions/agentic/learning/habit/client.rb', line 16

def habit_store
  @habit_store
end