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
strNo description available.
intNo description available.
intNo description available.
Dict[str, int]No description available.
Dict[str, Any]No description available.
ListNo description available.
strNo description available.
Methods
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 3953