UNPKG

@ai2070/l0

Version:

L0: The Missing Reliability Substrate for AI

15 lines 741 B
import type { GuardrailContext } from "../types/guardrails"; import type { GuardrailEngine } from "./engine"; export interface GuardrailCheckResult { violations: Array<{ rule: string; severity: "warning" | "error" | "fatal"; message: string; recoverable?: boolean; }>; shouldHalt: boolean; shouldRetry: boolean; } export declare function runAsyncGuardrailCheck(engine: GuardrailEngine, context: GuardrailContext, onComplete: (result: GuardrailCheckResult) => void): GuardrailCheckResult | undefined; export declare function runGuardrailCheckAsync(engine: GuardrailEngine, context: GuardrailContext, onComplete: (result: GuardrailCheckResult) => void): void; //# sourceMappingURL=async.d.ts.map