Interface GuardrailChainResult

Result of executing a guardrail chain

interface GuardrailChainResult {
    passed: boolean;
    results: { guardrail: string; result: GuardrailResult }[];
    highestSeverity?: GuardrailSeverity;
    totalViolations: number;
    executionTime: number;
}

Properties

passed: boolean

Whether all guardrails passed

results: { guardrail: string; result: GuardrailResult }[]

Results from each guardrail

highestSeverity?: GuardrailSeverity

Highest severity level found

totalViolations: number

Total violations across all guardrails

executionTime: number

Execution time in milliseconds