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

# Apply Fix • AI Agent SDK

> apply_fix: Apply migration fixes to configuration.

# apply\_fix

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

Apply migration fixes to configuration.

## Signature

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

## Parameters

<ParamField query="config" type="Dict[str, Any]" required={true}>
  Agent configuration dictionary
</ParamField>

### Returns

<ResponseField name="Returns" type="Dict[str, Any]">
  Updated configuration dictionary
</ResponseField>

## Used By

* [`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#L107">
  `praisonaiagents/runtime/doctor_protocol.py` at line 107
</Card>
