> ## 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 rules from the default registry.

# get\_rules

Function

> This function is defined in the [**doctor\_registry**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/doctor_registry.md) module.

Get all rules from the default registry.

## Signature

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

### Returns

**Returns** `List[DoctorContractProtocol]`

The result of the operation.

## Uses

* `get_rules`
* `get_default_registry`

## 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#L262)
>
> `praisonaiagents/runtime/doctor_registry.py` at line 262


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