Class: Legion::Extensions::Agentic::Affect::Reward::Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Runners::Reward

#compute_reward, #domain_rewards, #reward_for, #reward_history, #reward_stats, #reward_status

Constructor Details

#initialize(reward_store: nil) ⇒ Client

Returns a new instance of Client.



19
20
21
# File 'lib/legion/extensions/agentic/affect/reward/client.rb', line 19

def initialize(reward_store: nil, **)
  @reward_store = reward_store || Helpers::RewardStore.new
end

Instance Attribute Details

#reward_storeObject (readonly)

Returns the value of attribute reward_store.



17
18
19
# File 'lib/legion/extensions/agentic/affect/reward/client.rb', line 17

def reward_store
  @reward_store
end