Rules Manager • AI Agent SDK

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

rules_manager

Method

</div>

This is a method of the Agent class in the 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
def rules_manager() -> Optional[Any]

Returns

ResponseField Optional[Any]

RulesManager instance or None if not available

Source

View on GitHub

praisonaiagents/agent/agent.py at line 6269