Module: Pikuri::Agent::Control

Defined in:
lib/pikuri/agent/control.rb,
lib/pikuri/agent/control/interloper.rb,
lib/pikuri/agent/control/step_limit.rb,
lib/pikuri/agent/control/cancellable.rb

Overview

Namespace for the Agent‘s host-facing controls: StepLimit, Cancellable, and Interloper. Each is a small value-holder that the Agent reads from (or pokes into the event stream from) at well-defined points in ruby_llm’s chat-callback cycle. They are not listeners — they receive no events and never appear in a ListenerList.

Why they’re separated

Listeners are pure consumers of the event stream; controls are host-facing signal holders that the Agent reads from. The Agent is the only entity that emits events, the only entity that ticks the step counter, the only entity that checks the cancellation flag, and the only entity that drains the interloper queue. “What fires when” is a single grep for @listeners.emit in agent.rb.

What each control does

Defined Under Namespace

Classes: Cancellable, Interloper, StepLimit