Class: Legion::Extensions::Agentic::Social::TheoryOfMind::Client

Inherits:
Object
  • Object
show all
Includes:
Runners::TheoryOfMind
Defined in:
lib/legion/extensions/agentic/social/theory_of_mind/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Runners::TheoryOfMind

#check_false_beliefs, #compare_agents, #mental_state, #observe_agent, #perspective_take, #predict_behavior, #record_outcome, #tom_stats, #update_theory_of_mind

Constructor Details

#initialize(tracker: nil) ⇒ Client

Returns a new instance of Client.



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

def initialize(tracker: nil, **)
  @tracker = tracker || Helpers::MentalStateTracker.new
end

Instance Attribute Details

#trackerObject (readonly)

Returns the value of attribute tracker.



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

def tracker
  @tracker
end