> ## 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**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

AI Agent

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

**request\_id** `str`

No description available.

**kind** `GatewayRequestKind`

No description available.

**prompt** `str`

No description available.

**options** `Optional`

No description available.

**session\_id** `str`

No description available.

## Methods

> **[as\_dict()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/GatewayServerRequest-as_dict.md)**
>
> Convert to a serializable dictionary for the `server_request` frame.

## Source

> **[View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L3715)**
>
> `praisonaiagents/gateway/protocols.py` at line 3715

***

## Related Documentation

> **[Gateway Feature](https://praison.ai/docs/docs/features/gateway)**


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.