new • Rust AI Agent SDK

new: Create a new rule.

new

Method

</div>

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

Create a new rule.

Signature

python
def new(name: impl Into<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.