matches • Rust AI Agent SDK

matches: Check if content matches this rule.

matches

Method

</div>

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

Check if content matches this rule.

Signature

python
def matches(&self, content: &str) -> bool

Parameters

ParamField &str

No description available.

Returns

ResponseField bool

The result of the operation.