Gateway Request Channel Protocol • AI Agent SDK

GatewayRequestChannelProtocol: Protocol for server→client interactive request/reply over the transport.

GatewayRequestChannelProtocol

Defined in the protocols module.

AI Agent

Protocol for server→client interactive request/reply over the transport.

A concrete implementation is bound by the running gateway (in praisonai-bot) and registered into the per-turn context so a blocked HITL turn can deliver an :class:GatewayServerRequest to the connected client and await the correlated :class:GatewayServerReply. `open_requests` returns the still-open requests for a session so the gateway’s resume path can re-issue them alongside the event replay — a dropped connection never wedges a turn.

Methods

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 3908


Related Documentation