> ## 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.

# health • AI Agent SDK

> health: Get gateway health status.

# health

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

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

Get gateway health status.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def health() -> Dict[str, Any]
```

### Returns

<ResponseField name="Returns" type="Dict[str, Any]">
  * status: "healthy" or "unhealthy"
    * uptime: Seconds since start
    * agents: Number of registered agents
    * sessions: Number of active sessions
    * clients: Number of connected clients
</ResponseField>

## Source

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