UNPKG

@ai2070/l0

Version:

L0: The Missing Reliability Substrate for AI

31 lines 1.17 kB
export interface FormatJsonOutputOptions { includeInstructions?: boolean; strict?: boolean; schema?: string; example?: string; } export declare function formatJsonOutput(options?: FormatJsonOutputOptions): string; export declare function formatStructuredOutput(format: "json" | "yaml" | "xml" | "markdown" | "plain", options?: { strict?: boolean; schema?: string; example?: string; }): string; export declare function formatOutputConstraints(constraints: { maxLength?: number; minLength?: number; noCodeBlocks?: boolean; noMarkdown?: boolean; language?: string; tone?: string; }): string; export declare function wrapOutputInstruction(instruction: string): string; export declare function createOutputFormatSection(format: "json" | "yaml" | "xml" | "markdown" | "plain", options?: { strict?: boolean; schema?: string; example?: string; constraints?: Parameters<typeof formatOutputConstraints>[0]; wrap?: boolean; }): string; export declare function extractJsonFromOutput(output: string): string | null; export declare function cleanOutput(output: string): string; //# sourceMappingURL=output.d.ts.map