> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Note Fleet State • AI Agent SDK

> note_fleet_state: Trip the breaker when too large a fraction of the fleet is failing.

# note\_fleet\_state

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**FleetSupervisionPolicy**](../classes/FleetSupervisionPolicy) class in the [**protocols**](../modules/protocols) module.

Trip the breaker when too large a fraction of the fleet is failing.

A systemic fault often shows up as many channels simultaneously in a
failing/parked state rather than as a raw restart rate. When at least
`failing_channel_fraction` of the fleet is failing, trip and start the
cooldown.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def note_fleet_state(failing_channels: int, total_channels: int, now: float) -> bool
```

## Parameters

<ParamField query="failing_channels" type="int" required={true}>
  Number of channels currently failing/parked.
</ParamField>

<ParamField query="total_channels" type="int" required={true}>
  Total number of supervised channels.
</ParamField>

<ParamField query="now" type="float" required={true}>
  A monotonic timestamp for this evaluation.
</ParamField>

### Returns

<ResponseField name="Returns" type="bool">
  `True` when the breaker is tripped (now or still cooling down).
</ResponseField>

## Uses

* `tripped`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L4561">
  `praisonaiagents/gateway/protocols.py` at line 4561
</Card>
