EU Parliament Monitor — API Documentation - v0.8.6
    Preparing search index...

    Generic input data structure for classification functions.

    Accepts data from any article type. All fields are optional so that partial or missing MCP data is safely handled by every classifier.

    This type will be consumed by the Analysis-First Pipeline Stage (Issue 4).

    interface ClassificationInput {
        votingRecords?: readonly {
            title?: string;
            date?: string;
            result?: string;
            votes?: { for?: number; against?: number; abstain?: number };
        }[];
        votingPatterns?: readonly {
            group?: string;
            cohesion?: number;
            participation?: number;
        }[];
        votingAnomalies?: readonly {
            type?: string;
            description?: string;
            severity?: string;
        }[];
        anomalies?: readonly {
            type?: string;
            description?: string;
            severity?: string;
        }[];
        documents?: readonly {
            title?: string;
            type?: string;
            date?: string;
            status?: string;
            committee?: string;
            rapporteur?: string;
        }[];
        procedures?: readonly {
            id?: string;
            title?: string;
            stage?: string;
            committee?: string;
            status?: string;
            bottleneck?: boolean;
        }[];
        questions?: readonly {
            author?: string;
            subject?: string;
            topic?: string;
            date?: string;
            status?: string;
            type?: string;
        }[];
        committees?: readonly {
            committee?: string;
            committeeName?: string;
            date?: string;
            agenda?: readonly { title?: string }[];
        }[];
        events?: readonly {
            title?: string;
            type?: string;
            date?: string;
            description?: string;
        }[];
        coalitions?: readonly {
            groups?: readonly string[];
            cohesionScore?: number;
            alignmentTrend?: string;
            riskLevel?: string;
        }[];
        mepScores?: readonly {
            mepName?: string;
            overallScore?: number;
            rank?: string;
        }[];
        articleType?: string;
    }
    Index

    Properties

    votingRecords?: readonly {
        title?: string;
        date?: string;
        result?: string;
        votes?: { for?: number; against?: number; abstain?: number };
    }[]

    Voting records from MCP or fallback

    votingPatterns?: readonly {
        group?: string;
        cohesion?: number;
        participation?: number;
    }[]

    Voting patterns (group cohesion) from MCP or fallback

    votingAnomalies?: readonly {
        type?: string;
        description?: string;
        severity?: string;
    }[]

    Voting anomalies detected in the period

    anomalies?: readonly { type?: string; description?: string; severity?: string }[]

    Alias for votingAnomalies — matches existing article payloads (e.g. Motions/WeeklyReview strategies) that expose anomalies as anomalies. When both fields are present they are merged internally.

    documents?: readonly {
        title?: string;
        type?: string;
        date?: string;
        status?: string;
        committee?: string;
        rapporteur?: string;
    }[]

    Legislative documents from MCP

    procedures?: readonly {
        id?: string;
        title?: string;
        stage?: string;
        committee?: string;
        status?: string;
        bottleneck?: boolean;
    }[]

    Active legislative procedures from pipeline

    questions?: readonly {
        author?: string;
        subject?: string;
        topic?: string;
        date?: string;
        status?: string;
        type?: string;
    }[]

    Parliamentary questions from MCP

    committees?: readonly {
        committee?: string;
        committeeName?: string;
        date?: string;
        agenda?: readonly { title?: string }[];
    }[]

    Committee meetings from MCP

    events?: readonly {
        title?: string;
        type?: string;
        date?: string;
        description?: string;
    }[]

    Upcoming or ongoing plenary events

    coalitions?: readonly {
        groups?: readonly string[];
        cohesionScore?: number;
        alignmentTrend?: string;
        riskLevel?: string;
    }[]

    Coalition intelligence data

    mepScores?: readonly { mepName?: string; overallScore?: number; rank?: string }[]

    MEP influence scores from MCP

    articleType?: string

    Free-form article type label for context