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

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

> This is a method of the [**DoctorContractProtocol**](../classes/DoctorContractProtocol) class in the [**doctor\_protocol**](../modules/doctor_protocol) 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

<ParamField query="config" type="Dict[str, Any]" required={true}>
  Agent configuration dictionary (from YAML or Python)
</ParamField>

### Returns

<ResponseField name="Returns" type="List[Finding]">
  List of findings for this configuration
</ResponseField>

## Used By

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

## Source

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