apply • Rust AI Agent SDK

apply: Apply the rule to content.

apply

Method

</div>

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

Apply the rule to content.

Signature

python
def apply(&self, content: &str) -> PolicyResult

Parameters

ParamField &str

No description available.

Returns

ResponseField PolicyResult

The result of the operation.