Class: Legion::Extensions::Agentic::Affect::Reward::Client
- Inherits:
-
Object
- Object
- Legion::Extensions::Agentic::Affect::Reward::Client
- Includes:
- Runners::Reward, Helpers::Lex
- Defined in:
- lib/legion/extensions/agentic/affect/reward/client.rb
Instance Attribute Summary collapse
-
#reward_store ⇒ Object
readonly
Returns the value of attribute reward_store.
Instance Method Summary collapse
-
#initialize(reward_store: nil) ⇒ Client
constructor
A new instance of Client.
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_store ⇒ Object (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 |