use_policy_to_detect
Detect policy violations in text by applying named policies. This tool analyzes input text against specified rules, returning detailed detection results for compliance and safety checks.
Instructions
Use a policy to detect violations in the provided text.
Args: policy_name: The name of the policy to use for detection. text: The text to check for policy violations.
Returns: A dictionary containing the response message and details of the detection.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
policy_name | Yes | ||
text | Yes |