Class: Legion::Extensions::Agentic::Social::Conscience::Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Runners::Conscience

#conscience_stats, #moral_dilemmas, #moral_evaluate, #moral_history, #moral_status, #update_moral_outcome

Constructor Details

#initialize(moral_store: nil) ⇒ Client

Returns a new instance of Client.



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

def initialize(moral_store: nil, **)
  @moral_store = moral_store || Helpers::MoralStore.new
end

Instance Attribute Details

#moral_storeObject (readonly)

Returns the value of attribute moral_store.



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

def moral_store
  @moral_store
end