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

# Doctor Protocol • AI Agent SDK

> DoctorContractProtocol for runtime config migration.

# doctor\_protocol

AI Agent

DoctorContractProtocol for runtime config migration.

Provides a protocol for third-party migration rules and built-in rules
for migrating legacy configuration fields like cli\_backend to the new
model-scoped runtime configuration.

## Import

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents.runtime import doctor_protocol
```

## Classes

> [card] [Finding](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/Finding.md)
>
> Represents a migration finding from a doctor rule.

> [card] [ConfigDiff](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/ConfigDiff.md)
>
> A per-rule before/after change produced by a repair.

> [card] [RepairPlan](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/RepairPlan.md)
>
> Result of a doctor repair pass, carrying the safety contract surface.

> [card] [DoctorContractProtocol](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/DoctorContractProtocol.md)
>
> Protocol for doctor migration rules.


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