> ## 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 Server Request • AI Agent SDK

> GatewayServerRequest: A typed server→client interactive request (Issue #5351).

# GatewayServerRequest

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

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

A typed server→client interactive request (Issue #5351).

Delivered to a connected gateway client as a `server_request` frame while
a turn is blocked awaiting a human answer, and re-issued verbatim on resume
for as long as it stays open.

Attributes:
request\_id: Correlation id echoed back in the :class:`GatewayServerReply`.
kind: One of :data:`GatewayRequestKind`.
prompt: Human-readable prompt to render.
options: Selectable options, populated only for `kind == "choice"`.
session\_id: Session the request belongs to (used for resume replay).

## Properties

<ResponseField name="request_id" type="str">
  No description available.
</ResponseField>

<ResponseField name="kind" type="GatewayRequestKind">
  No description available.
</ResponseField>

<ResponseField name="prompt" type="str">
  No description available.
</ResponseField>

<ResponseField name="options" type="Optional">
  No description available.
</ResponseField>

<ResponseField name="session_id" type="str">
  No description available.
</ResponseField>

## Methods

<CardGroup cols={2}>
  <Card title="as_dict()" icon="function" href="../functions/GatewayServerRequest-as_dict">
    Convert to a serializable dictionary for the `server_request` frame.
  </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#L3496">
  `praisonaiagents/gateway/protocols.py` at line 3496
</Card>

***

## Related Documentation

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