Module ws_approval
Expand description
WebSocket-backed Channel implementation that surfaces tool approval
prompts to the gateway client and waits for the operator’s decision.
Structs§
- WsApproval
Channel Channelimplementation that emits approval frames over a connection’s existingevent_txand parks on a oneshot until the matching response arrives ortimeoutelapses.
Functions§
- new_
pending_ approvals - Construct an empty pending-approvals registry for a fresh connection.
Type Aliases§
- Pending
Approvals - Shared map keyed by
request_id. Consumed by the receive loop to resolve the oneshot when anapproval_responseframe arrives.