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

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**DoctorRulesRegistry**](../classes/DoctorRulesRegistry) class in the [**doctor\_registry**](../modules/doctor_registry) 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

<ResponseField name="Returns" type="List[DoctorContractProtocol]">
  The result of the operation.
</ResponseField>

## 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 title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/runtime/doctor_registry.py#L40">
  `praisonaiagents/runtime/doctor_registry.py` at line 40
</Card>
