Class: Legion::Extensions::Agentic::Affect::CognitiveEmpathy::Client

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

Constant Summary

Constants included from Helpers::Constants

Helpers::Constants::ACCURACY_ALPHA, Helpers::Constants::ACCURACY_CEILING, Helpers::Constants::ACCURACY_FLOOR, Helpers::Constants::ACCURACY_LABELS, Helpers::Constants::CONTAGION_DECAY, Helpers::Constants::CONTAGION_RATE, Helpers::Constants::DEFAULT_ACCURACY, Helpers::Constants::EMPATHIC_STATES, Helpers::Constants::MAX_HISTORY, Helpers::Constants::MAX_INTERACTIONS, Helpers::Constants::MAX_PERSPECTIVES, Helpers::Constants::PERSPECTIVE_TYPES

Instance Method Summary collapse

Methods included from Runners::CognitiveEmpathy

#apply_emotional_contagion, #cognitive_empathy_stats, #current_empathic_state, #empathic_accuracy_for, #empathic_blind_spots, #overall_empathic_accuracy, #perspectives_for_agent, #process_human_observations, #record_empathic_outcome, #take_empathic_perspective, #update_cognitive_empathy

Constructor Details

#initialize(engine: nil) ⇒ Client

Returns a new instance of Client.



12
13
14
# File 'lib/legion/extensions/agentic/affect/cognitive_empathy/client.rb', line 12

def initialize(engine: nil)
  @engine = engine || Helpers::EmpathyEngine.new
end