Learn how to create and implement custom compliance rules for your organization’s specific needs.
ComplianceEngine
is highly extensible, allowing you to create custom rules that cater to your organization’s unique compliance, policy, and quality assurance requirements. This guide will walk you through the process of creating, adding, and managing custom compliance rules.
ruleFunction
, which takes an InteractionContext
and returns a ComplianceResult
.
agentResponse
, userMessage
, toolsUsed
, etc.Define the Rule Object
Implement the ruleFunction
Add the Rule to the Compliance Engine
Keep Rules Focused
Use Descriptive IDs and Names
Optimize Performance
Provide Actionable Recommendations
Test Thoroughly