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
def note_restart(now: float) -> boolParameters
ParamField
floatA 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 GitHubpraisonaiagents/gateway/protocols.py at line 6452