> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Liveness Decision • AI Agent SDK

> LivenessDecision: Outcome of a connection-liveness evaluation.

# LivenessDecision

> Defined in the [**protocols**](../modules/protocols) module.

<Badge color="blue">AI Agent</Badge>

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_TIMEOUT` and release its
  session/presence/queue state.

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L5222">
  `praisonaiagents/gateway/protocols.py` at line 5222
</Card>
