List Available Guardrails
List all available guardrails that can be applied to agents for content filtering and AI safety.Response
Returns an array of available guardrail configurations that can be applied to agents.Guardrails help ensure AI safety by filtering inappropriate content, preventing harmful outputs, and enforcing content policies.
Add Guardrail to Agent
Add a guardrail to an agent to implement content filtering and AI safety measures.Path Parameters
The unique identifier of the agent
Request Body
The unique identifier of the guardrail to add
Priority level for this guardrail (lower numbers = higher priority)
1-10- High priority (critical safety measures)11-50- Medium priority (content filtering)51-100- Low priority (style and tone guidance)
Response
Returns a confirmation of the guardrail addition.List Agent Guardrails
List all guardrails currently applied to a specific agent.Path Parameters
The unique identifier of the agent
Response
Returns an array of guardrail configurations currently active for the agent, ordered by priority.Remove Guardrail from Agent
Remove a specific guardrail from an agent.Path Parameters
The unique identifier of the agent
The unique identifier of the guardrail to remove
Response
Returns a confirmation of guardrail removal.Guardrail Types and Categories
Understanding the different types of guardrails available for AI safety and content control:Content Safety Guardrails
Harmful Content Filter
Harmful Content Filter
Prevents generation of harmful, toxic, or dangerous content
Personal Information Protection
Personal Information Protection
Prevents sharing of personal identifiable information (PII)
Profanity Filter
Profanity Filter
Filters inappropriate language and profanity
Business Policy Guardrails
Brand Guidelines
Brand Guidelines
Ensures responses align with brand voice and guidelines
Legal Compliance
Legal Compliance
Prevents responses that could create legal liability
Industry Regulations
Industry Regulations
Enforces industry-specific regulatory compliance
Quality and Style Guardrails
Response Length Control
Response Length Control
Controls the length and verbosity of responses
Factual Accuracy Check
Factual Accuracy Check
Verifies factual claims and prevents misinformation
Language Appropriateness
Language Appropriateness
Ensures appropriate language level and tone
Guardrail Management Best Practices
1
Start with Essential Safety
Begin with critical safety guardrails (harmful content, PII protection) at high priority
2
Layer by Priority
Add guardrails in priority order, with safety measures taking precedence over style preferences
3
Test Thoroughly
Test agent responses after adding guardrails to ensure they work as expected
4
Monitor Performance
Monitor how guardrails affect response quality and user satisfaction
5
Regular Review
Periodically review and update guardrail configurations based on usage patterns
Priority Guidelines
High Priority (1-10)
Critical Safety Measures
- Harmful content prevention
- PII protection
- Legal compliance
- Industry regulations
Medium Priority (11-50)
Content Quality Control
- Profanity filtering
- Brand guidelines
- Factual accuracy
- Bias prevention
Low Priority (51-100)
Style and Preferences
- Response length control
- Tone adjustment
- Language level
- Formatting preferences
Configuration Examples
Implementation Strategy
Monitoring and Analytics
Guardrail Effectiveness Metrics:
- Trigger Rate: How often guardrails activate
- False Positives: Safe content incorrectly filtered
- User Satisfaction: Impact on user experience
- Response Quality: Overall response appropriateness
- Performance Impact: Effect on response time
Troubleshooting Common Issues
Over-Filtering
Over-Filtering
Problem: Guardrails are too strict, blocking appropriate contentSolutions:
- Review guardrail priorities and adjust as needed
- Consider less restrictive guardrail variants
- Add exceptions for specific use cases
- Test with diverse content samples
Under-Filtering
Under-Filtering
Problem: Inappropriate content is still getting throughSolutions:
- Add additional relevant guardrails
- Increase priority of existing safety guardrails
- Review guardrail configuration for gaps
- Consider custom guardrail rules
Performance Impact
Performance Impact
Problem: Guardrails are slowing down response timesSolutions:
- Optimize guardrail priority ordering
- Remove redundant or low-value guardrails
- Consider batching guardrail checks
- Monitor and profile individual guardrail performance
Custom Guardrail Development
Compliance and Governance
Audit Trail
All guardrail changes are logged for compliance and governance requirements
Version Control
Guardrail configurations can be versioned and rolled back if needed
Policy Enforcement
Centralized policy management across all agents in your organization
Reporting
Detailed reporting on guardrail effectiveness and usage patterns