> ## 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.

# Reap Deadline • AI Agent SDK

> reap_deadline: Return the absolute time after which the connection is stale.

# reap\_deadline

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**LivenessPolicy**](../classes/LivenessPolicy) class in the [**protocols**](../modules/protocols) module.

Return the absolute time after which the connection is stale.

A connection is reaped when the evaluation-time `now` is strictly
above this deadline (`now &gt; reap_deadline(last_activity)`). Exposed
so the server reaper and the client watchdog derive the same window
from one advertised interval.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def reap_deadline(last_activity: float) -> float
```

## Parameters

<ParamField query="last_activity" type="float" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="float">
  The result of the operation.
</ResponseField>

## Used By

* [`LivenessPolicy.evaluate`](../functions/LivenessPolicy-evaluate)

## Source

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