Profanity Rule • Rust AI Agent SDK

profanity_rule: Create a rule to block profanity.

profanity_rule

Function

</div>

This function is defined in the policy module.

Create a rule to block profanity.

Signature

python
def profanity_rule(words: Vec<String>) -> PolicyRule

Parameters

ParamField Vec&lt;String&gt;

No description available.

Returns

ResponseField PolicyRule

The result of the operation.

Uses

  • description
  • action
  • keyword

Source

View on GitHub

praisonai/src/policy/mod.rs at line 426