Skip to main content
logoTetrate Agent Operations DirectorVersion: Latest

Customizing Guardrails

While Agent Ops Director includes a comprehensive set of default guardrails, organizations often have unique requirements that necessitate customization. This guide explains how to create and maintain custom guardrails tailored to your specific needs.

Understanding Custom Guardrails

Custom guardrails allow you to:

  • Address industry-specific regulatory requirements
  • Protect proprietary information and internal systems
  • Match your organization's specific risk profile and policies
  • Extend default guardrails with organization-specific knowledge

Creating a Custom Guardrail

To create a completely new custom guardrail:

  1. Navigate to the Guardrail Studio section
  2. Click the + New button
  3. Configure the guardrail basics:
    • Name: A descriptive name for the guardrail
    • Category: Select an appropriate category (Security, Regulatory, Operational)
    • Description: Explain the guardrail's purpose and function
    • Mode: Choose initial mode (Monitoring recommended for new guardrails)
  4. Click Save to create the guardrail shell

After creating the guardrail, you'll need to add detection rules, test cases, and other components as described in other guides.

Creating a New Guardrail

Cloning and Extending Existing Guardrails

Often, it's easier to start with an existing guardrail and customize it:

  1. In Guardrail Studio, select the guardrail you want to use as a base
  2. Click the Clone button
  3. Modify the cloned guardrail's settings as needed
  4. Add, remove, or modify detection rules
  5. Update test cases to match your customizations

This approach is particularly useful when you want to build on the foundation of a default guardrail while adding organization-specific elements.

Customizing for Industry-Specific Needs

Different industries have unique requirements:

Healthcare

  • Add custom rules for PHI detection beyond standard patterns
  • Implement HIPAA-specific guardrails for compliance
  • Create rules for medical terminology and patient identifiers

Financial Services

  • Add detection rules for financial product terminology
  • Implement guardrails for regulatory frameworks like FINRA
  • Create rules for detecting financial accounts and transaction data
  • Create guardrails for attorney-client privileged communications
  • Add rules for detecting legal document structures
  • Implement confidentiality controls specific to legal processes

Importing and Exporting Custom Guardrails

To share custom guardrails across environments:

  1. In the guardrail details view, click the Export button
  2. The guardrail definition will be exported in a standardized format
  3. In another environment, use the Import button to upload the guardrail

This functionality is useful for maintaining consistency across development, testing, and production environments.

Managing Custom Guardrail Rules

Custom guardrails often require specialized detection rules:

  1. Go to the Detection Rules tab of your custom guardrail
  2. Click + Add Detection Rule to create new rules
  3. Consider using the Import Rules option to add rules from a library

You can also use the Manage Library feature to maintain a collection of reusable rules across multiple guardrails.

Creating Organization-Specific Rule Categories

For better organization of custom rules:

  1. When adding a rule, click the category dropdown
  2. Select Create New Category
  3. Enter a name and description for your custom category
  4. Assign relevant rules to this category

Custom categories help maintain clarity when you have many organization-specific rules.

Testing Custom Guardrails

Thorough testing is especially important for custom guardrails:

  1. Create comprehensive test cases that cover your organization's specific scenarios
  2. Include both valid and invalid examples based on your organization's data
  3. Regularly update test cases as your organization's needs evolve

See Testing Guardrails for detailed testing workflows.

Best Practices for Custom Guardrails

  • Document Extensively: Include clear descriptions of why the guardrail exists and how it works
  • Version Control: Maintain a clear version history for custom guardrails
  • Regular Review: Schedule periodic reviews of custom guardrails to ensure continued relevance
  • Collaborative Development: Involve security, compliance, and business stakeholders in custom guardrail creation
  • Gradual Deployment: Roll out custom guardrails gradually, starting in Monitoring mode

Next Steps