update_guardrails_policy
Modify an existing guardrails policy by updating its configuration, including enabling or disabling detectors such as injection_attack, pii, nsfw, toxicity, and others, to enhance AI safety and compliance.
Instructions
Update an existing guardrails policy with new configuration.
Args: policy_name: The name of the policy to update. detectors: Dictionary of detector configurations. Each key should be the name of a detector, and the value should be a dictionary of settings for that detector. Available detectors and their configurations are as follows:
Returns: A dictionary containing the response message and updated policy details.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
detectors | Yes | ||
policy_description | No | Updated policy configuration | |
policy_name | Yes |