@ai2070/l0
Version:
L0: The Missing Reliability Substrate for AI
108 lines • 7.19 kB
TypeScript
import { z } from "zod4";
import type { ChunkStrategy, DocumentChunk, WindowProcessResult, WindowStats, ContextRestorationStrategy, WindowPreset } from "../types/window";
export declare const ChunkStrategySchema: z.ZodType<ChunkStrategy>;
export declare const ContextRestorationStrategySchema: z.ZodType<ContextRestorationStrategy>;
export declare const WindowOptionsSchema: z.ZodObject<{
size: z.ZodOptional<z.ZodNumber>;
overlap: z.ZodOptional<z.ZodNumber>;
strategy: z.ZodOptional<z.ZodType<ChunkStrategy, unknown, z.core.$ZodTypeInternals<ChunkStrategy, unknown>>>;
estimateTokens: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
preserveParagraphs: z.ZodOptional<z.ZodBoolean>;
preserveSentences: z.ZodOptional<z.ZodBoolean>;
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
}, z.core.$strip>;
export declare const DocumentChunkSchema: z.ZodType<DocumentChunk>;
export declare const WindowProcessResultSchema: z.ZodType<WindowProcessResult>;
export declare const WindowStatsSchema: z.ZodType<WindowStats>;
export declare const DocumentWindowSchema: z.ZodObject<{
document: z.ZodString;
totalChunks: z.ZodNumber;
currentIndex: z.ZodNumber;
options: z.ZodAny;
get: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
current: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
next: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
prev: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
jump: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
reset: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
getAllChunks: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
getRange: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
hasNext: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
hasPrev: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
processAll: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
processSequential: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
processParallel: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
getStats: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
}, z.core.$strip>;
export declare const ContextRestorationOptionsSchema: z.ZodObject<{
enabled: z.ZodOptional<z.ZodBoolean>;
strategy: z.ZodOptional<z.ZodType<ContextRestorationStrategy, unknown, z.core.$ZodTypeInternals<ContextRestorationStrategy, unknown>>>;
maxAttempts: z.ZodOptional<z.ZodNumber>;
onRestore: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
}, z.core.$strip>;
export declare const L0WindowOptionsSchema: z.ZodObject<{
__outputType: z.ZodOptional<z.ZodUnknown>;
stream: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
fallbackStreams: z.ZodOptional<z.ZodArray<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>>;
guardrails: z.ZodOptional<z.ZodArray<z.ZodAny>>;
retry: z.ZodOptional<z.ZodAny>;
timeout: z.ZodOptional<z.ZodObject<{
initialToken: z.ZodOptional<z.ZodNumber>;
interToken: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>>;
signal: z.ZodOptional<z.ZodCustom<AbortSignal, AbortSignal>>;
monitoring: z.ZodOptional<z.ZodAny>;
checkIntervals: z.ZodOptional<z.ZodAny>;
detectDrift: z.ZodOptional<z.ZodBoolean>;
detectZeroTokens: z.ZodOptional<z.ZodBoolean>;
continueFromLastKnownGoodToken: z.ZodOptional<z.ZodBoolean>;
buildContinuationPrompt: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
deduplicateContinuation: z.ZodOptional<z.ZodBoolean>;
deduplicationOptions: z.ZodOptional<z.ZodAny>;
onStart: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
onComplete: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
onError: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
onEvent: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
onViolation: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
onRetry: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
onFallback: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
onResume: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
onCheckpoint: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
onTimeout: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
onAbort: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
onDrift: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
onToolCall: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
interceptors: z.ZodOptional<z.ZodArray<z.ZodAny>>;
adapter: z.ZodOptional<z.ZodAny>;
adapterOptions: z.ZodOptional<z.ZodUnknown>;
window: z.ZodOptional<z.ZodObject<{
document: z.ZodString;
totalChunks: z.ZodNumber;
currentIndex: z.ZodNumber;
options: z.ZodAny;
get: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
current: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
next: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
prev: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
jump: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
reset: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
getAllChunks: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
getRange: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
hasNext: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
hasPrev: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
processAll: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
processSequential: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
processParallel: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
getStats: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
}, z.core.$strip>>;
chunkIndex: z.ZodOptional<z.ZodNumber>;
contextRestoration: z.ZodOptional<z.ZodObject<{
enabled: z.ZodOptional<z.ZodBoolean>;
strategy: z.ZodOptional<z.ZodType<ContextRestorationStrategy, unknown, z.core.$ZodTypeInternals<ContextRestorationStrategy, unknown>>>;
maxAttempts: z.ZodOptional<z.ZodNumber>;
onRestore: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const WindowPresetSchema: z.ZodType<WindowPreset>;
//# sourceMappingURL=window.d.ts.map