UNPKG

@ai2070/l0

Version:

L0: The Missing Reliability Substrate for AI

15 lines 857 B
import type { GuardrailRule, GuardrailContext, GuardrailViolation, JsonStructure } from "../types/guardrails"; export declare function analyzeJsonStructure(content: string): JsonStructure; export declare function looksLikeJson(content: string): boolean; export declare function validateJsonStructure(context: GuardrailContext): GuardrailViolation[]; export declare function validateJsonChunks(context: GuardrailContext): GuardrailViolation[]; export declare function validateJsonParseable(context: GuardrailContext): GuardrailViolation[]; export declare function jsonRule(): GuardrailRule; export declare function strictJsonRule(): GuardrailRule; export declare class JsonGuardrail { private rule; constructor(strict?: boolean); check(context: GuardrailContext): GuardrailViolation[]; get name(): string; } //# sourceMappingURL=json.d.ts.map