Gateway Status • AI Agent SDK

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

GatewayStatus

Defined in the protocols 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 `{"owner": ..., "reason": ...}` entries (channels/capabilities/routes flagged configured-unavailable). detail: Optional free-form extra context for the model.

Properties

ResponseField str

No description available.

ResponseField int

No description available.

ResponseField int

No description available.

ResponseField Dict[str, int]

No description available.

ResponseField Dict[str, Any]

No description available.

ResponseField List

No description available.

ResponseField str

No description available.

Methods

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 3953


Related Documentation