Class: Legion::Extensions::Agentic::Learning::Habit::Client
- Inherits:
-
Object
- Object
- Legion::Extensions::Agentic::Learning::Habit::Client
- Includes:
- Runners::Habit
- Defined in:
- lib/legion/extensions/agentic/learning/habit/client.rb
Instance Attribute Summary collapse
-
#habit_store ⇒ Object
readonly
Returns the value of attribute habit_store.
Instance Method Summary collapse
-
#initialize(habit_store: nil) ⇒ Client
constructor
A new instance of Client.
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_store ⇒ Object (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 |