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

# Register Rule • AI Agent SDK

> register_rule: Register a migration rule.

# register\_rule

Method

> This is a method of the [**DoctorRulesRegistry**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/DoctorRulesRegistry.md) class in the [**doctor\_registry**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/doctor_registry.md) module.

Register a migration rule.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def register_rule(rule: DoctorContractProtocol) -> None
```

## Parameters

**rule** `DoctorContractProtocol` *required*

No description available.

## Uses

* `TypeError`
* `warnings.warn`

## Used By

* [`register_rule`](../functions/register_rule)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/runtime/doctor_registry.py#L26)
>
> `praisonaiagents/runtime/doctor_registry.py` at line 26


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