use_policy_to_detect
Apply a specified policy to identify and analyze violations within text inputs, supporting real-time safety and compliance monitoring in AI applications.
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 |