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
bool
No description available.
str
No description available.
bool
No description available.
Optional[float]
No description available.
Optional[ProbeResult]
No description available.
int
No 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.
int
No description available.
Internal & Generic Methods
Internal & Generic Methods
- to_dict: Convert to dictionary.
Source
View on GitHub
praisonaiagents/bots/protocols.py at line 783
