UNPKG

@ai2070/l0

Version:

L0: The Missing Reliability Substrate for AI

139 lines 8.58 kB
import { z } from "zod4"; import type { CheckpointValidationResult, L0ContentType, L0DataPayload, L0Progress, L0Event, L0State, L0Telemetry, CategorizedNetworkError } from "../types/l0"; export declare const L0ContentTypeSchema: z.ZodType<L0ContentType>; export declare const L0DataPayloadSchema: z.ZodType<L0DataPayload>; export declare const L0ProgressSchema: z.ZodType<L0Progress>; export declare const L0EventSchema: z.ZodType<L0Event>; export declare const CategorizedNetworkErrorSchema: z.ZodType<CategorizedNetworkError>; export declare const L0StateSchema: z.ZodType<L0State>; export declare const L0TelemetrySchema: z.ZodType<L0Telemetry>; export declare const CheckpointValidationResultSchema: z.ZodType<CheckpointValidationResult>; export declare const RetryOptionsSchema: z.ZodObject<{ attempts: z.ZodOptional<z.ZodNumber>; maxRetries: z.ZodOptional<z.ZodNumber>; backoff: z.ZodOptional<z.ZodType<import("..").BackoffStrategy, unknown, z.core.$ZodTypeInternals<import("..").BackoffStrategy, unknown>>>; baseDelay: z.ZodOptional<z.ZodNumber>; maxDelay: z.ZodOptional<z.ZodNumber>; retryOn: z.ZodOptional<z.ZodArray<z.ZodType<import("..").RetryReason, unknown, z.core.$ZodTypeInternals<import("..").RetryReason, unknown>>>>; errorTypeDelays: z.ZodOptional<z.ZodObject<{ connectionDropped: z.ZodOptional<z.ZodNumber>; fetchError: z.ZodOptional<z.ZodNumber>; econnreset: z.ZodOptional<z.ZodNumber>; econnrefused: z.ZodOptional<z.ZodNumber>; sseAborted: z.ZodOptional<z.ZodNumber>; noBytes: z.ZodOptional<z.ZodNumber>; partialChunks: z.ZodOptional<z.ZodNumber>; runtimeKilled: z.ZodOptional<z.ZodNumber>; backgroundThrottle: z.ZodOptional<z.ZodNumber>; dnsError: z.ZodOptional<z.ZodNumber>; timeout: z.ZodOptional<z.ZodNumber>; unknown: z.ZodOptional<z.ZodNumber>; }, z.core.$strip>>; calculateDelay: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; shouldRetry: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; }, z.core.$strip>; export declare const L0AdapterSchema: z.ZodObject<{ name: z.ZodString; detect: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; wrap: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>; }, z.core.$strip>; export declare const L0InterceptorSchema: z.ZodObject<{ name: z.ZodOptional<z.ZodString>; before: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; after: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onError: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; }, z.core.$strip>; export declare const L0OptionsSchema: 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.ZodObject<{ attempts: z.ZodOptional<z.ZodNumber>; maxRetries: z.ZodOptional<z.ZodNumber>; backoff: z.ZodOptional<z.ZodType<import("..").BackoffStrategy, unknown, z.core.$ZodTypeInternals<import("..").BackoffStrategy, unknown>>>; baseDelay: z.ZodOptional<z.ZodNumber>; maxDelay: z.ZodOptional<z.ZodNumber>; retryOn: z.ZodOptional<z.ZodArray<z.ZodType<import("..").RetryReason, unknown, z.core.$ZodTypeInternals<import("..").RetryReason, unknown>>>>; errorTypeDelays: z.ZodOptional<z.ZodObject<{ connectionDropped: z.ZodOptional<z.ZodNumber>; fetchError: z.ZodOptional<z.ZodNumber>; econnreset: z.ZodOptional<z.ZodNumber>; econnrefused: z.ZodOptional<z.ZodNumber>; sseAborted: z.ZodOptional<z.ZodNumber>; noBytes: z.ZodOptional<z.ZodNumber>; partialChunks: z.ZodOptional<z.ZodNumber>; runtimeKilled: z.ZodOptional<z.ZodNumber>; backgroundThrottle: z.ZodOptional<z.ZodNumber>; dnsError: z.ZodOptional<z.ZodNumber>; timeout: z.ZodOptional<z.ZodNumber>; unknown: z.ZodOptional<z.ZodNumber>; }, z.core.$strip>>; calculateDelay: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; shouldRetry: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; }, z.core.$strip>>; 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.ZodObject<{ enabled: z.ZodOptional<z.ZodBoolean>; sampleRate: z.ZodOptional<z.ZodNumber>; includeNetworkDetails: z.ZodOptional<z.ZodBoolean>; includeTimings: z.ZodOptional<z.ZodBoolean>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, z.core.$strip>>; checkIntervals: z.ZodOptional<z.ZodObject<{ guardrails: z.ZodOptional<z.ZodNumber>; drift: z.ZodOptional<z.ZodNumber>; checkpoint: z.ZodOptional<z.ZodNumber>; }, z.core.$strip>>; 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.ZodObject<{ minOverlap: z.ZodOptional<z.ZodNumber>; maxOverlap: z.ZodOptional<z.ZodNumber>; caseSensitive: z.ZodOptional<z.ZodBoolean>; normalizeWhitespace: z.ZodOptional<z.ZodBoolean>; }, z.core.$strip>>; 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.ZodObject<{ name: z.ZodOptional<z.ZodString>; before: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; after: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; onError: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; }, z.core.$strip>>>; adapter: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{ name: z.ZodString; detect: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>; wrap: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>; }, z.core.$strip>, z.ZodString]>>; adapterOptions: z.ZodOptional<z.ZodUnknown>; }, z.core.$strip>; export declare const L0ResultSchema: z.ZodObject<{ __outputType: z.ZodOptional<z.ZodUnknown>; stream: z.ZodAny; text: z.ZodOptional<z.ZodString>; state: z.ZodType<L0State, unknown, z.core.$ZodTypeInternals<L0State, unknown>>; errors: z.ZodArray<z.ZodCustom<Error, Error>>; telemetry: z.ZodOptional<z.ZodType<L0Telemetry, unknown, z.core.$ZodTypeInternals<L0Telemetry, unknown>>>; abort: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>; }, z.core.$strip>; //# sourceMappingURL=l0.d.ts.map