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
request()
Deliver
req to the session’s client and await its reply.open_requests()
Return the still-open (unanswered) requests for
session_id.Source
View on GitHub
praisonaiagents/gateway/protocols.py at line 3550
