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 |
Input Schema (JSON Schema)
{
"properties": {
"policy_name": {
"title": "Policy Name",
"type": "string"
},
"text": {
"title": "Text",
"type": "string"
}
},
"required": [
"policy_name",
"text"
],
"title": "use_policy_to_detectArguments",
"type": "object"
}