Health Result • AI Agent SDK

HealthResult: Detailed health status of a bot.

HealthResult

Defined in the protocols module.

AI Agent

Detailed health status of a bot.

Attributes: ok: Overall health status platform: Platform name is_running: Whether the bot is actively running uptime_seconds: Seconds since bot started (None if not running) probe: Latest probe result (None if not probed) sessions: Number of active sessions error: Error message (if unhealthy) details: Additional platform-specific health details reason: Health status reason (optional) last_activity: Last INBOUND transport activity timestamp (optional) last_run_progress: Last IN-RUN progress timestamp (optional) — refreshed on real run progress (tool calls, streamed draft edits, token output, or a periodic heartbeat) so a long, actively-progressing run keeps the channel BUSY instead of tripping STUCK on wall-clock alone. active_runs: Number of in-flight agent turns (busy count)

Properties

ResponseField bool

No description available.

ResponseField str

No description available.

ResponseField bool

No description available.

ResponseField Optional[float]

No description available.

ResponseField Optional[ProbeResult]

No description available.

ResponseField int

No description available.

ResponseField Optional[str]

No description available.

ResponseField Dict[str, Any]

No description available.

ResponseField Optional[HealthReason]

No description available.

ResponseField Optional[float]

No description available.

ResponseField Optional[float]

No description available.

ResponseField int

No description available.

Internal & Generic Methods
  • to_dict: Convert to dictionary.

Source

View on GitHub

praisonaiagents/bots/protocols.py at line 986