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

    Analysis context loaded from the analysis pipeline output directory.

    Strategies call loadAnalysisContext during ArticleStrategy.fetchData and store the result in their data payload. The context is then consumed by ArticleStrategy.buildContent to enrich articles with analytical depth.

    When analysis files are not available (e.g. the analysis stage was skipped), the context is null and strategies degrade gracefully to their existing behaviour.

    interface LoadedAnalysisContext {
        date: string;
        analysisDir: string;
        manifest: Record<string, unknown> | null;
        overallConfidence: string | null;
        files: ReadonlyMap<string, AnalysisFileContent>;
    }
    Index

    Properties

    date: string

    ISO date of the analysis

    analysisDir: string

    Resolved analysis directory path

    manifest: Record<string, unknown> | null

    Parsed manifest.json (null when manifest not found)

    overallConfidence: string | null

    Overall confidence from the manifest

    files: ReadonlyMap<string, AnalysisFileContent>

    Loaded analysis files keyed by method name