Note Restart • AI Agent SDK

note_restart: Record a fleet restart at “now“ and return whether the breaker is tripped.

note_restart

Method

</div>

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

Record a fleet restart at `now` and return whether the breaker is tripped.

Signature

python
def note_restart(now: float) -> bool

Parameters

ParamField float

A monotonic timestamp for this restart event.

Returns

ResponseField bool

`True when the aggregate restart rate has reached fleet_restarts_per_hour within the trailing hour (or the breaker is still within its cooldown); False` otherwise.

Uses

  • tripped

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 6452