Class: Legion::Extensions::Agentic::Attention::Surprise::Client
- Inherits:
-
Object
- Object
- Legion::Extensions::Agentic::Attention::Surprise::Client
- Includes:
- Runners::Surprise
- Defined in:
- lib/legion/extensions/agentic/attention/surprise/client.rb
Instance Attribute Summary collapse
-
#habituation_model ⇒ Object
readonly
Returns the value of attribute habituation_model.
-
#store ⇒ Object
readonly
Returns the value of attribute store.
Instance Method Summary collapse
-
#initialize(store: nil, habituation_model: nil) ⇒ Client
constructor
A new instance of Client.
Methods included from Runners::Surprise
#domain_sensitivity, #evaluate_surprise, #recent_surprises, #reset_habituation, #surprise_stats, #update_surprise
Constructor Details
#initialize(store: nil, habituation_model: nil) ⇒ Client
Returns a new instance of Client.
13 14 15 16 |
# File 'lib/legion/extensions/agentic/attention/surprise/client.rb', line 13 def initialize(store: nil, habituation_model: nil, **) @store = store || Helpers::SurpriseStore.new @habituation_model = habituation_model || Helpers::HabituationModel.new end |
Instance Attribute Details
#habituation_model ⇒ Object (readonly)
Returns the value of attribute habituation_model.
11 12 13 |
# File 'lib/legion/extensions/agentic/attention/surprise/client.rb', line 11 def habituation_model @habituation_model end |
#store ⇒ Object (readonly)
Returns the value of attribute store.
11 12 13 |
# File 'lib/legion/extensions/agentic/attention/surprise/client.rb', line 11 def store @store end |