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

# Collect Findings • AI Agent SDK

> collect_findings: Analyze configuration and collect migration findings.

# collect\_findings

Method

> This is a method of the [**DoctorContractProtocol**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/DoctorContractProtocol.md) class in the [**doctor\_protocol**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/doctor_protocol.md) module.

Analyze configuration and collect migration findings.

## Signature

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

## Parameters

**config** `Dict[str, Any]` *required*

Agent configuration dictionary (from YAML or Python)

### Returns

**Returns** `List[Finding]`

List of findings for this configuration

## Used By

* [`DoctorRulesRegistry.collect_all_findings`](../functions/DoctorRulesRegistry-collect_all_findings)
* [`DoctorRulesRegistry.plan_fixes`](../functions/DoctorRulesRegistry-plan_fixes)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/runtime/doctor_protocol.py#L95)
>
> `praisonaiagents/runtime/doctor_protocol.py` at line 95


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.