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

> GatewayStatus: Read-only snapshot of the gateway's live self-state (Issue #3688).

# GatewayStatus

> Defined in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

AI Agent

Read-only snapshot of the gateway's live self-state (Issue #3688).

A neutral, serializable shape the agent can reason about and report. All
fields default to empty so a partial/minimal binding is valid and the tool
never dead-ends. The concrete binding populates only the visibility-scoped
facts it can safely expose.

Attributes:
run: Current turn/run status (e.g. "idle", "busy", "queued").
queued: Number of turns queued behind the current one.
active\_sessions: Count of active sessions (visibility-scoped).
sessions\_by\_channel: Active-session counts keyed by channel/platform.
delivery: Delivery-health facts (e.g. outbox\_depth, dlq, dead\_targets).
degraded: Degraded owners as `&#123;"owner": ..., "reason": ...&#125;` entries
(channels/capabilities/routes flagged configured-unavailable).
detail: Optional free-form extra context for the model.

## Properties

**run** `str`

No description available.

**queued** `int`

No description available.

**active\_sessions** `int`

No description available.

**sessions\_by\_channel** `Dict[str, int]`

No description available.

**delivery** `Dict[str, Any]`

No description available.

**degraded** `List`

No description available.

**detail** `str`

No description available.

## Methods

> [card] [as\_dict()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/GatewayStatus-as_dict.md)
>
> Convert to a serializable dictionary.

## Source

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

***

## Related Documentation

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


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