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

# Get Rules • AI Agent SDK

> get_rules: Get all registered rules, loading plugins if not already loaded.

# get\_rules

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.

Get all registered rules, loading plugins if not already loaded.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_rules() -> List[DoctorContractProtocol]
```

### Returns

**Returns** `List[DoctorContractProtocol]`

The result of the operation.

## Used By

* [`DoctorRulesRegistry.get_rule`](../functions/DoctorRulesRegistry-get_rule)
* [`DoctorRulesRegistry.collect_all_findings`](../functions/DoctorRulesRegistry-collect_all_findings)
* [`DoctorRulesRegistry.plan_fixes`](../functions/DoctorRulesRegistry-plan_fixes)
* [`get_rules`](../functions/get_rules)

## Source

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


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