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

# Rules Manager • AI Agent SDK

> rules_manager: Lazy-initialized RulesManager for persistent rules/instructions.

# rules\_manager

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

> This is a method of the [**Agent**](../classes/Agent) class in the [**agent**](../modules/agent) module.

Lazy-initialized RulesManager for persistent rules/instructions.

This property initializes the RulesManager only when first accessed,
avoiding expensive filesystem operations during agent instantiation.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def rules_manager() -> Any
```

### Returns

<ResponseField name="Returns" type="Any">
  RulesManager instance or None if not available
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/agent.py#L2651">
  `praisonaiagents/agent/agent.py` at line 2651
</Card>
