Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Persist all downloaded MCP data to the structured analysis/data/ tree.

      Documents are organised by type under analysis/data/documents/{type}/. Date-stamped data (votes, events) is further partitioned by date.

      Data files contain only raw source data (no metadata injection) to ensure parallel workflows writing the same document produce identical output, preventing git merge conflicts.

      Parameters

      • data: DownloadedData

        Downloaded data collections from downloadAllDocuments()

      • riksmote: string

        Current riksmรถte identifier (e.g. "2025/26")

      • OptionalmcpToolMap: Partial<Record<DocumentTypeKey, string>>

        Map of document type โ†’ MCP tool name for provenance

      • dataRoot: string = DATA_ROOT

        Override for the data root directory (for testing)

      Returns PersistenceResult

      Summary of files written and skipped.