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

# detect • AI Agent SDK

> detect: Return current health findings without mutating external state.

# detect

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

> This is a method of the [**HealthCheckProtocol**](../classes/HealthCheckProtocol) class in the [**health\_check**](../modules/health_check) module.

Return current health findings without mutating external state.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def detect(context: Mapping[str, Any]) -> List[Finding]
```

## Parameters

<ParamField query="context" type="Mapping[str, Any]" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="List[Finding]">
  The result of the operation.
</ResponseField>

## Used By

* [`migrate_config_with_doctor`](../functions/migrate_config_with_doctor)
* [`HealthCheckRegistry.run`](../functions/HealthCheckRegistry-run)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/runtime/health_check.py#L82">
  `praisonaiagents/runtime/health_check.py` at line 82
</Card>
