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

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.

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

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

Agent configuration dictionary

### Returns

**Returns** `Dict[str, Any]`

Updated configuration dictionary

## Used By

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


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