Class: Legion::Extensions::Agentic::Self::Agency::Client

Inherits:
Object
  • Object
show all
Includes:
Runners::Agency
Defined in:
lib/legion/extensions/agentic/self/agency/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Runners::Agency

#agency_stats, #check_efficacy, #record_mastery, #record_persuasion, #record_physiological, #record_vicarious, #should_attempt?, #strongest_domains, #update_agency, #weakest_domains

Constructor Details

#initialize(efficacy_model: nil) ⇒ Client

Returns a new instance of Client.



13
14
15
# File 'lib/legion/extensions/agentic/self/agency/client.rb', line 13

def initialize(efficacy_model: nil, **)
  @efficacy_model = efficacy_model || Helpers::EfficacyModel.new
end

Instance Attribute Details

#efficacy_modelObject (readonly)

Returns the value of attribute efficacy_model.



11
12
13
# File 'lib/legion/extensions/agentic/self/agency/client.rb', line 11

def efficacy_model
  @efficacy_model
end