Class: Legion::Extensions::Agentic::Affect::Regulation::Actor::RegulateEmotion

Inherits:
Legion::Extensions::Actors::Every
  • Object
show all
Defined in:
lib/legion/extensions/agentic/affect/regulation/actors/regulate_emotion.rb

Overview

Periodic emotional regulation maintenance actor. Calls update_emotional_regulation which performs skill decay — no live emotion inputs are required. regulate_emotion itself requires emotion_magnitude: and cannot be safely invoked as a background tick without a signal source.

Instance Method Summary collapse

Instance Method Details

#check_subtask?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/legion/extensions/agentic/affect/regulation/actors/regulate_emotion.rb', line 36

def check_subtask?
  false
end

#generate_task?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/legion/extensions/agentic/affect/regulation/actors/regulate_emotion.rb', line 40

def generate_task?
  false
end

#run_now?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/legion/extensions/agentic/affect/regulation/actors/regulate_emotion.rb', line 28

def run_now?
  false
end

#runner_classObject

rubocop:disable Legion/Extension/EveryActorRequiresTime



16
17
18
# File 'lib/legion/extensions/agentic/affect/regulation/actors/regulate_emotion.rb', line 16

def runner_class
  Legion::Extensions::Agentic::Affect::Regulation::Runners::EmotionalRegulation
end

#runner_functionObject



20
21
22
# File 'lib/legion/extensions/agentic/affect/regulation/actors/regulate_emotion.rb', line 20

def runner_function
  'update_emotional_regulation'
end

#timeObject



24
25
26
# File 'lib/legion/extensions/agentic/affect/regulation/actors/regulate_emotion.rb', line 24

def time
  60
end

#use_runner?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/legion/extensions/agentic/affect/regulation/actors/regulate_emotion.rb', line 32

def use_runner?
  false
end