Interface GuardrailPolicy

Declarative guardrail policy attached to a node or edge.

interface GuardrailPolicy {
    input?: string[];
    output?: string[];
    onViolation: "warn" | "block" | "reroute" | "sanitize";
    rerouteTarget?: string;
}

Properties

input?: string[]

Guardrail ids evaluated against the node's incoming payload.

output?: string[]

Guardrail ids evaluated against the node's outgoing payload.

onViolation: "warn" | "block" | "reroute" | "sanitize"

Action taken when any guardrail fires.

rerouteTarget?: string

Required when onViolation is 'reroute'.