Interface RequiredGuardrailSpec

interface RequiredGuardrailSpec {
    id: string;
    stages: GuardrailStage[];
    timeoutMs: number;
}

Properties

Properties

id: string

The guard's id: its IGuardrailService.id, else the id of the descriptor it was registered under.

stages: GuardrailStage[]

The stages it must evaluate: a guard required on output must implement evaluateOutput.

timeoutMs: number

Its deadline per evaluation; past it the guard blocks.