record • AI Agent SDK

record: Record a restart at wall-clock “now“ and flush to the store.

record

Method

</div>

This is a method of the PersistentRestartLoopGuard class in the protocols module.

Record a restart at wall-clock `now` and flush to the store.

Unlike the base class this expects a wall-clock timestamp (`time.time()`), because a monotonic clock resets across process boots and would make persisted events meaningless.

Signature

python
def record(now: float) -> bool

Parameters

ParamField float

No description available.

Returns

ResponseField bool

The result of the operation.

Uses

  • record

Used By

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 6305