@plust/datasleuth - v0.2.0
    Preparing search index...

    Interface ConflictResolutionOptions

    Options for conflict resolution

    interface ConflictResolutionOptions {
        strategy:
            | "custom"
            | "first"
            | "last"
            | "mostConfident"
            | "majority"
            | "weighted";
        weights?: Record<string, number>;
        customResolver?: (values: any[], metadata: any[]) => any;
        confidenceExtractor?: (
            trackResult: {
                name: string;
                results: any[];
                data: Record<string, any>;
                metadata?: Record<string, any>;
                errors: { message: string; step?: string; code?: string }[];
                completed: boolean;
            },
        ) => number;
    }
    Index

    Properties

    strategy:
        | "custom"
        | "first"
        | "last"
        | "mostConfident"
        | "majority"
        | "weighted"

    Strategy to use when resolving conflicts

    weights?: Record<string, number>

    Weights to apply to different tracks (for weighted strategy)

    customResolver?: (values: any[], metadata: any[]) => any

    Custom resolution function (for custom strategy)

    confidenceExtractor?: (
        trackResult: {
            name: string;
            results: any[];
            data: Record<string, any>;
            metadata?: Record<string, any>;
            errors: { message: string; step?: string; code?: string }[];
            completed: boolean;
        },
    ) => number

    Function to extract confidence scores (for mostConfident strategy)