@ai2070/l0
Version:
L0: The Missing Reliability Substrate for AI
12 lines • 917 B
TypeScript
import { z } from "zod";
import type { StructuredOptions, StructuredResult } from "./types/structured";
import type { L0Event } from "./types/l0";
export declare function structured<T extends z.ZodTypeAny>(options: StructuredOptions<T>): Promise<StructuredResult<z.infer<T>>>;
export declare function structuredObject<T extends z.ZodRawShape>(shape: T, options: Omit<StructuredOptions<z.ZodObject<T>>, "schema">): Promise<StructuredResult<z.infer<z.ZodObject<T>>>>;
export declare function structuredArray<T extends z.ZodTypeAny>(itemSchema: T, options: Omit<StructuredOptions<z.ZodArray<T>>, "schema">): Promise<StructuredResult<z.infer<z.ZodArray<T>>>>;
export declare function structuredStream<T extends z.ZodTypeAny>(options: StructuredOptions<T>): Promise<{
stream: AsyncIterable<L0Event>;
result: Promise<StructuredResult<z.infer<T>>>;
abort: () => void;
}>;
//# sourceMappingURL=structured.d.ts.map