Liveness Decision • AI Agent SDK
LivenessDecision: Outcome of a connection-liveness evaluation.
LivenessDecision
Defined in the protocols module.
AI Agent
Outcome of a connection-liveness evaluation.
- `
KEEP` — the connection has shown activity recently enough; leave it. - `
REAP` — the connection missed too many heartbeats and is presumed - dead/half-open; the server should close it with
- :attr:
GatewayCloseCode.LIVENESS_TIMEOUTand release its - session/presence/queue state.
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 7196