Add Rule • Rust AI Agent SDK

add_rule: Add a rule.

add_rule

Method

</div>

This is a method of the PolicyEngine class in the policy module.

Add a rule.

Signature

python
def add_rule(&mut self, rule: PolicyRule) -> ()

Parameters

ParamField PolicyRule

No description available.

Returns

ResponseField ()

The result of the operation.