Class: Legion::Extensions::Agentic::Defense::Whirlpool::Client
- Inherits:
-
Object
- Object
- Legion::Extensions::Agentic::Defense::Whirlpool::Client
- Includes:
- Runners::CognitiveWhirlpool
- Defined in:
- lib/legion/extensions/agentic/defense/whirlpool/client.rb
Instance Attribute Summary collapse
-
#engine ⇒ Object
readonly
Returns the value of attribute engine.
Instance Method Summary collapse
- #clear_engine ⇒ Object
- #create_vortex(vortex_type:, angular_velocity: 0.5, depth: 0.0, capture_radius: 0.5) ⇒ Object
- #deepest_vortices(limit: 3) ⇒ Object
- #dissipate_all(rate: Helpers::Constants::VELOCITY_DECAY) ⇒ Object
-
#initialize ⇒ Client
constructor
A new instance of Client.
- #inject_thought(vortex_id:, content:, domain: :general, distance_from_core: 1.0) ⇒ Object
- #remove_vortex(vortex_id:) ⇒ Object
- #tick_all(spiral_rate: nil) ⇒ Object
- #vortex_report ⇒ Object
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
13 14 15 |
# File 'lib/legion/extensions/agentic/defense/whirlpool/client.rb', line 13 def initialize @engine = Helpers::WhirlpoolEngine.new end |
Instance Attribute Details
#engine ⇒ Object (readonly)
Returns the value of attribute engine.
11 12 13 |
# File 'lib/legion/extensions/agentic/defense/whirlpool/client.rb', line 11 def engine @engine end |
Instance Method Details
#clear_engine ⇒ Object
57 58 59 |
# File 'lib/legion/extensions/agentic/defense/whirlpool/client.rb', line 57 def clear_engine(**) super(engine: @engine) end |
#create_vortex(vortex_type:, angular_velocity: 0.5, depth: 0.0, capture_radius: 0.5) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/legion/extensions/agentic/defense/whirlpool/client.rb', line 17 def create_vortex(vortex_type:, angular_velocity: 0.5, depth: 0.0, capture_radius: 0.5, **) super( vortex_type: vortex_type, angular_velocity: angular_velocity, depth: depth, capture_radius: capture_radius, engine: @engine ) end |
#deepest_vortices(limit: 3) ⇒ Object
49 50 51 |
# File 'lib/legion/extensions/agentic/defense/whirlpool/client.rb', line 49 def deepest_vortices(limit: 3, **) super(limit: limit, engine: @engine) end |
#dissipate_all(rate: Helpers::Constants::VELOCITY_DECAY) ⇒ Object
41 42 43 |
# File 'lib/legion/extensions/agentic/defense/whirlpool/client.rb', line 41 def dissipate_all(rate: Helpers::Constants::VELOCITY_DECAY, **) super(rate: rate, engine: @engine) end |
#inject_thought(vortex_id:, content:, domain: :general, distance_from_core: 1.0) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/legion/extensions/agentic/defense/whirlpool/client.rb', line 27 def inject_thought(vortex_id:, content:, domain: :general, distance_from_core: 1.0, **) super( vortex_id: vortex_id, content: content, domain: domain, distance_from_core: distance_from_core, engine: @engine ) end |
#remove_vortex(vortex_id:) ⇒ Object
53 54 55 |
# File 'lib/legion/extensions/agentic/defense/whirlpool/client.rb', line 53 def remove_vortex(vortex_id:, **) super(vortex_id: vortex_id, engine: @engine) end |
#tick_all(spiral_rate: nil) ⇒ Object
37 38 39 |
# File 'lib/legion/extensions/agentic/defense/whirlpool/client.rb', line 37 def tick_all(spiral_rate: nil, **) super(spiral_rate: spiral_rate, engine: @engine) end |
#vortex_report ⇒ Object
45 46 47 |
# File 'lib/legion/extensions/agentic/defense/whirlpool/client.rb', line 45 def vortex_report(**) super(engine: @engine) end |