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

<Badge color="blue">AI Agent</Badge>

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

<CardGroup cols={2}>
  <Card title="Finding" icon="brackets-curly" href="../classes/Finding">
    Represents a migration finding from a doctor rule.
  </Card>

  <Card title="ConfigDiff" icon="brackets-curly" href="../classes/ConfigDiff">
    A per-rule before/after change produced by a repair.
  </Card>

  <Card title="RepairPlan" icon="brackets-curly" href="../classes/RepairPlan">
    Result of a doctor repair pass, carrying the safety contract surface.
  </Card>

  <Card title="DoctorContractProtocol" icon="brackets-curly" href="../classes/DoctorContractProtocol">
    Protocol for doctor migration rules.
  </Card>
</CardGroup>
