How to Duplicate Guardrails Public Preview

DigitalOcean GenAI Platform lets you build GPU-powered AI agents with fully-managed deployment. Agents can use pre-built or custom foundation models, incorporate function and agent routes, and implement RAG pipelines with knowledge bases.


You can duplicate guardrails to individually edit their permissions and attach them to different agents. Duplicating guardrails allows you to create different guardrail responses for different agents. For example, you may want one agent to respond to jailbreak detections by saying, “I can’t answer that question, but I can help with something else,” and have another agent respond to jailbreak detections by saying, “That’s not allowed!”

Duplicate Guardrails

To duplicate a guardrail, go to the DigitalOcean Control Panel. In the left menu, click GenAI Platform, then click the Guardrails tab to view your guardrails page. In the Guardrails section, to the right of the guardrail you want to duplicate, open the menu and click Duplicate Guardrail.

This takes you to the guardrail duplication page, where you must configure the following guardrails settings:

  • Name and Description: Enter a unique name and description for your guardrail.
  • Sensitive Data Detection categories: If the guardrail is a Sensitive Data Detection guardrail or a duplicate of one, you can customize which categories a guardrail detects. For example, you can edit a guardrail to detect credit card numbers or IP addresses. By default, guardrails detect all categories. To change this, click Customize categories and check the categories you want the guardrail to detect. The customize categories option is only available for Sensitive Data Detection guardrails.
  • Default Agent Response: If the guardrail detects an enabled category, it interrupts the agent and instructs it to output the default agent response. By default, the default agent response is “I’m not able to respond to that request, but I can answer other questions. How can I help you with something else?”. To customize it, set a different value here.
  • Attach Agents: You can optionally attach your updated guardrails to different agents by checking them here.

To confirm your changes, click Duplicate Guardrail.

In this article...