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

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**doctor\_registry**](../modules/doctor_registry) module.

Get all rules from the default registry.

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

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