Gateway Server Request • AI Agent SDK

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

GatewayServerRequest

Defined in the protocols 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

ResponseField str

No description available.

ResponseField GatewayRequestKind

No description available.

ResponseField str

No description available.

ResponseField Optional

No description available.

ResponseField str

No description available.

Methods

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 3854


Related Documentation