Class: Legion::Extensions::Agentic::Learning::Anchoring::Client

Inherits:
Object
  • Object
show all
Includes:
Runners::Anchoring
Defined in:
lib/legion/extensions/agentic/learning/anchoring/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Runners::Anchoring

#anchoring_stats, #de_anchor, #domain_anchors, #evaluate_estimate, #record_anchor, #reference_frame, #shift_reference, #update_anchoring

Constructor Details

#initialize(anchor_store: nil) ⇒ Client

Returns a new instance of Client.



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

def initialize(anchor_store: nil, **)
  @anchor_store = anchor_store || Helpers::AnchorStore.new
end

Instance Attribute Details

#anchor_storeObject (readonly)

Returns the value of attribute anchor_store.



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

def anchor_store
  @anchor_store
end