UNPKG

@ai2070/l0

Version:

L0: The Missing Reliability Substrate for AI

12 lines 1.12 kB
import type { ConsensusOutput, Agreement, Disagreement, FieldConsensus } from "../types/consensus"; export declare function calculateSimilarityMatrix(outputs: ConsensusOutput[]): number[][]; export declare function calculateOutputSimilarity(a: ConsensusOutput, b: ConsensusOutput): number; export declare function calculateStructuralSimilarity(a: any, b: any): number; export declare function findAgreements(outputs: ConsensusOutput[], threshold?: number): Agreement[]; export declare function findDisagreements(outputs: ConsensusOutput[], threshold?: number): Disagreement[]; export declare function calculateFieldConsensus(outputs: ConsensusOutput[]): FieldConsensus; export declare function resolveMajority(outputs: ConsensusOutput[], weights?: number[]): ConsensusOutput; export declare function resolveBest(outputs: ConsensusOutput[], weights?: number[]): ConsensusOutput; export declare function resolveMerge(outputs: ConsensusOutput[]): ConsensusOutput; export declare function meetsMinimumAgreement(agreements: Agreement[], outputs: number, threshold: number): boolean; //# sourceMappingURL=consensusUtils.d.ts.map