> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Gateway Request Channel Protocol • AI Agent SDK

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

# GatewayRequestChannelProtocol

> Defined in the [**protocols**](../modules/protocols) module.

<Badge color="blue">AI Agent</Badge>

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

<CardGroup cols={2}>
  <Card title="request()" icon="function" href="../functions/GatewayRequestChannelProtocol-request">
    Deliver `req` to the session's client and await its reply.
  </Card>

  <Card title="open_requests()" icon="function" href="../functions/GatewayRequestChannelProtocol-open_requests">
    Return the still-open (unanswered) requests for `session_id`.
  </Card>
</CardGroup>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L3550">
  `praisonaiagents/gateway/protocols.py` at line 3550
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Gateway Feature" icon="tower-broadcast" href="/docs/docs/features/gateway" />
</CardGroup>
