UNPKG

@ai2070/l0

Version:

L0: The Missing Reliability Substrate for AI

7 lines 572 B
import type { z } from "zod"; import type { ConsensusOptions, ConsensusResult } from "./types/consensus"; export declare function consensus<T extends z.ZodTypeAny = z.ZodTypeAny>(options: ConsensusOptions<T>): Promise<ConsensusResult<z.infer<T>>>; export declare function quickConsensus(outputs: string[], threshold?: number): boolean; export declare function getConsensusValue<T = any>(outputs: T[]): T; export declare function validateConsensus(result: ConsensusResult, minConfidence?: number, maxDisagreements?: number): boolean; //# sourceMappingURL=consensus.d.ts.map