modify_deployment_config
Update and adjust deployment configurations, including guardrail policies and model settings, to ensure AI safety and compliance. Modify settings like input/output guardrails, detector blocks, and additional configurations for tailored deployment management.
Instructions
Modify the deployment configuration and update the deployment.
Args: deployment_name: The name of the deployment to be modified. new_deployment_config: The new deployment configuration to be modified.
Example Usage:
{
"deployment_config": {
sample_deployment_config = {
"name": deployment_name,
"model_saved_name": model_saved_name,
"input_guardrails_policy": {
"policy_name": policy_name,
"enabled": True,
"additional_config": {
"pii_redaction": False #Add these if any additional detectors than that in the policy are needed
},
"block": [
"injection_attack", # Could be any of the active detectors (Ask user if they want to block)
"policy_violation"
]
},
"output_guardrails_policy": {
"policy_name": policy_name,
"enabled": False,
"additional_config": {
"hallucination": False, #Add these if any additional detectors than that in the policy are needed
"adherence": False,
"relevancy": False
},
"block": [
"nsfw" # Could be any of the active detectors (Ask user if they want to block)
]
},
}
}
Returns: A dictionary containing the response message and details of the modified deployment.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
deployment_name | Yes | ||
new_deployment_config | Yes |
Input Schema (JSON Schema)
{
"properties": {
"deployment_name": {
"title": "Deployment Name",
"type": "string"
},
"new_deployment_config": {
"additionalProperties": true,
"title": "New Deployment Config",
"type": "object"
}
},
"required": [
"deployment_name",
"new_deployment_config"
],
"title": "modify_deployment_configArguments",
"type": "object"
}