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
def profanity_rule(words: Vec<String>) -> PolicyRuleParameters
ParamField
Vec<String>No description available.
Returns
ResponseField
PolicyRuleThe result of the operation.
Uses
descriptionactionkeyword
Source
View on GitHubpraisonai/src/policy/mod.rs at line 426