Riksdagsmonitor Intelligence Platform โ€” API Documentation - v0.8.54
    Preparing search index...

    Options for generating the deep analysis section

    interface DeepAnalysisOptions {
    ย ย ย ย documents: RawDocument[];
    ย ย ย ย lang: string;
    ย ย ย ย cia?: CIAContext;
    ย ย ย ย articleType: string;
    ย ย ย ย whyContext?: string;
    ย ย ย ย frameworkAnalysis?: Map<string, DocumentAnalysis>;
    ย ย ย ย perspectiveAnalysis?: BatchAnalysisResult;
    }
    Index

    Properties

    documents: RawDocument[]
    lang: string
    articleType: string
    whyContext?: string

    Extra context sentences to inject into the "Why" subsection

    frameworkAnalysis?: Map<string, DocumentAnalysis>

    Pre-computed document analyses from the AI analysis framework. When provided, the deep analysis section is enriched with PESTLE dimensions, stakeholder impact assessments, risk assessments, and implementation feasibility data from the framework.

    Use analyzeDocumentsForContent() to produce this map.

    perspectiveAnalysis?: BatchAnalysisResult

    Multi-perspective analysis from the analysis-framework (6 lenses: government, opposition, citizen, economic, international, media). When provided, key insights and perspective summaries are injected into the deep analysis section.

    Use analyzeDocumentsForContent() to produce this automatically.