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
boolNo description available.
strNo description available.
boolNo description available.
Optional[float]No description available.
Optional[ProbeResult]No description available.
intNo description available.
Optional[str]No description available.
Dict[str, Any]No description available.
Optional[HealthReason]No description available.
Optional[float]No description available.
Optional[float]No description available.
intNo description available.
Internal & Generic Methods
- to_dict: Convert to dictionary.
Source
View on GitHubpraisonaiagents/bots/protocols.py at line 986