Class: Legion::Extensions::Apollo::Client

Inherits:
Object
  • Object
show all
Includes:
Runners::Expertise, Runners::Knowledge, Runners::Maintenance
Defined in:
lib/legion/extensions/apollo/client.rb

Constant Summary

Constants included from Runners::Knowledge

Runners::Knowledge::DOMAIN_ISOLATION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Runners::Maintenance

#archive_stale, #check_corroboration, #force_decay, #resolve_dispute, #run_decay_cycle

Methods included from Runners::Expertise

#agent_profile, #aggregate, #domains_at_risk, #get_expertise

Methods included from Runners::Knowledge

#deprecate_entry, #handle_erasure_request, #handle_ingest, #handle_query, #handle_traverse, #prepare_mesh_export, #query_knowledge, #redistribute_knowledge, #related_entries, #retrieve_relevant

Constructor Details

#initialize(agent_id: 'unknown') ⇒ Client

Returns a new instance of Client.



20
21
22
# File 'lib/legion/extensions/apollo/client.rb', line 20

def initialize(agent_id: 'unknown', **)
  @agent_id = agent_id
end

Instance Attribute Details

#agent_idObject (readonly)

Returns the value of attribute agent_id.



18
19
20
# File 'lib/legion/extensions/apollo/client.rb', line 18

def agent_id
  @agent_id
end

Instance Method Details

#store_knowledge(source_agent: nil) ⇒ Object



24
25
26
# File 'lib/legion/extensions/apollo/client.rb', line 24

def store_knowledge(source_agent: nil, **)
  super(**, source_agent: source_agent || @agent_id)
end