Reap Deadline • AI Agent SDK

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

reap_deadline

Method

</div>

This is a method of the LivenessPolicy class in the 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
def reap_deadline(last_activity: float) -> float

Parameters

ParamField float

No description available.

Returns

ResponseField float

The result of the operation.

Used By

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 7291