Pending-input helpers for delegated ReAct runs.
This module keeps the acceptance rules and queue lifecycle for steer and
inject control input out of the main ReAct strategy so the public
orchestration path stays easier to follow.
Summary
Functions
Attempts to queue a steer or inject control input and records the outcome.
Returns whether the current strategy state still accepts queued user input.
Starts a queue owned by the calling strategy process for the given request.
Stops the tracked queue server, if any, and clears it from strategy state.
Types
@type control_kind() :: :steer | :inject
@type strategy_state() :: map()
Functions
@spec accept_control(strategy_state(), map(), control_kind()) :: {:ok, strategy_state()} | {:error, strategy_state()}
Attempts to queue a steer or inject control input and records the outcome.
@spec open?(strategy_state()) :: boolean()
Returns whether the current strategy state still accepts queued user input.
Starts a queue owned by the calling strategy process for the given request.
@spec stop(strategy_state()) :: strategy_state()
Stops the tracked queue server, if any, and clears it from strategy state.