Skip to main content

Module ws_approval

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§

WsApprovalChannel
Channel implementation that emits approval frames over a connection’s existing event_tx and parks on a oneshot until the matching response arrives or timeout elapses.

Functions§

new_pending_approvals
Construct an empty pending-approvals registry for a fresh connection.

Type Aliases§

PendingApprovals
Shared map keyed by request_id. Consumed by the receive loop to resolve the oneshot when an approval_response frame arrives.