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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"policy_name": "<policy_name>",
"text": "<text>"
},
"name": "use_policy_to_detect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy_name | Yes | ||
| text | Yes |