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

    Interface PipelineResult

    Rich result returned by a completed pipeline run. Extends GenerationResult with per-stage timing and degradation metadata.

    interface PipelineResult {
    ย ย ย ย durationMs?: number;
    ย ย ย ย stageDurations?: Partial<Record<PipelineStage, number>>;
    ย ย ย ย warnings?: string[];
    ย ย ย ย degraded?: boolean;
    ย ย ย ย success: boolean;
    ย ย ย ย files?: number;
    ย ย ย ย slug?: string;
    ย ย ย ย error?: string;
    ย ย ย ย articles?: GeneratedArticle[];
    ย ย ย ย mcpCalls?: MCPCallRecord[];
    ย ย ย ย crossReferences?: Record<string, unknown>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    durationMs?: number

    Wall-clock time in milliseconds for the complete pipeline run.

    stageDurations?: Partial<Record<PipelineStage, number>>

    Per-stage duration breakdown (ms). Keys match PipelineStage values.

    warnings?: string[]

    Warnings collected during the run (e.g. MCP queries that returned no data but were handled via graceful degradation).

    degraded?: boolean

    Whether the pipeline used cached / fallback data for any stage. true indicates at least one graceful-degradation path was taken.

    success: boolean
    files?: number
    slug?: string
    error?: string
    articles?: GeneratedArticle[]
    mcpCalls?: MCPCallRecord[]
    crossReferences?: Record<string, unknown>