UNPKG

@ai2070/l0

Version:

L0: The Missing Reliability Substrate for AI

48 lines 2.69 kB
import { z } from "zod4"; import type { GuardrailViolation, GuardrailContext, GuardrailState, GuardrailResult, JsonStructure, MarkdownStructure, LatexStructure, PatternConfig, DriftConfig, FunctionCallStructure, SchemaValidation } from "../types/guardrails"; export declare const GuardrailViolationSchema: z.ZodType<GuardrailViolation>; export declare const GuardrailContextSchema: z.ZodType<GuardrailContext>; export declare const GuardrailRuleSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional<z.ZodString>; check: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>; streaming: z.ZodOptional<z.ZodBoolean>; severity: z.ZodOptional<z.ZodEnum<{ warning: "warning"; error: "error"; fatal: "fatal"; }>>; recoverable: z.ZodOptional<z.ZodBoolean>; }, z.core.$strip>; export declare const GuardrailStateSchema: z.ZodType<GuardrailState>; export declare const GuardrailConfigSchema: z.ZodObject<{ rules: z.ZodArray<z.ZodObject<{ name: z.ZodString; description: z.ZodOptional<z.ZodString>; check: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>; streaming: z.ZodOptional<z.ZodBoolean>; severity: z.ZodOptional<z.ZodEnum<{ warning: "warning"; error: "error"; fatal: "fatal"; }>>; recoverable: z.ZodOptional<z.ZodBoolean>; }, z.core.$strip>>; stopOnFatal: z.ZodOptional<z.ZodBoolean>; enableStreaming: z.ZodOptional<z.ZodBoolean>; checkInterval: z.ZodOptional<z.ZodNumber>; onViolation: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onPhaseStart: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onPhaseEnd: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onRuleStart: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onRuleEnd: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; }, z.core.$strip>; export declare const GuardrailResultSchema: z.ZodType<GuardrailResult>; export declare const JsonStructureSchema: z.ZodType<JsonStructure>; export declare const MarkdownStructureSchema: z.ZodType<MarkdownStructure>; export declare const LatexStructureSchema: z.ZodType<LatexStructure>; export declare const PatternConfigSchema: z.ZodType<PatternConfig>; export declare const DriftConfigSchema: z.ZodType<DriftConfig>; export declare const FunctionCallStructureSchema: z.ZodType<FunctionCallStructure>; export declare const SchemaValidationSchema: z.ZodType<SchemaValidation>; //# sourceMappingURL=guardrails.d.ts.map