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
def record(now: float) -> boolParameters
ParamField
floatNo description available.
Returns
ResponseField
boolThe result of the operation.
Uses
record
Used By
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 6305