Class: Legion::Extensions::Agentic::Affect::Motivation::Client

Inherits:
Object
  • Object
show all
Includes:
Runners::Motivation, Helpers::Lex
Defined in:
lib/legion/extensions/agentic/affect/motivation/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Runners::Motivation

#commit_to_goal, #drive_status, #most_motivated_goal, #motivation_for, #motivation_stats, #release_goal, #signal_drive, #update_motivation

Constructor Details

#initialize(motivation_store: nil) ⇒ Client

Returns a new instance of Client.



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

def initialize(motivation_store: nil, **)
  @motivation_store = motivation_store || Helpers::MotivationStore.new
end

Instance Attribute Details

#motivation_storeObject (readonly)

Returns the value of attribute motivation_store.



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

def motivation_store
  @motivation_store
end