> ## 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 Contract Protocol • AI Agent SDK

> DoctorContractProtocol: Protocol for doctor migration rules.

# DoctorContractProtocol

> Defined in the [**Doctor Protocol**](../modules/doctor_protocol) module.

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

Protocol for doctor migration rules.

Third-party plugins can implement this protocol to provide custom
migration rules for agent configurations.

## Methods

<CardGroup cols={2}>
  <Card title="rule_id()" icon="function" href="../functions/DoctorContractProtocol-rule_id">
    Unique identifier for this migration rule.
  </Card>

  <Card title="collect_findings()" icon="function" href="../functions/DoctorContractProtocol-collect_findings">
    Analyze configuration and collect migration findings.
  </Card>

  <Card title="apply_fix()" icon="function" href="../functions/DoctorContractProtocol-apply_fix">
    Apply migration fixes to configuration.
  </Card>
</CardGroup>

## Source

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