Skip to main content

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

str
No description available.
int
No description available.
int
No description available.
Dict[str, int]
No description available.
Dict[str, Any]
No description available.
List
No description available.
str
No description available.

Methods

as_dict()

Convert to a serializable dictionary.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 2721

Gateway Feature