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

    Module Aggregator/KeyTakeaways

    Deterministic 3–7 bullet "Key takeaways" synthesiser.

    Reads the strongest evidence-bearing bullets from intelligence/synthesis-summary.md (and, when present, from an intelligence/intelligence-assessment.md artifact) and projects them into a single short bullet block placed immediately after the Executive Brief in the aggregated article. The output is a pure function of its inputs — same artifact bytes in → same Markdown out.

    Selection rules (in priority order):

    1. Bullets under a ## Top Findings, ## Key Judgments, ## Key Takeaways, ## Headline Findings or ## BLUF H2 are preferred.
    2. Failing that, the first 3–7 bullets from the artifact body are used.
    3. Near-duplicate bullets (Jaccard ≥ 0.7 over word sets) are folded so overlap between synthesis-summary and intelligence-assessment does not produce stuttering output.
    4. The block is capped at MAX_TAKEAWAYS bullets and floored at MIN_TAKEAWAYS; below the floor the synthesiser returns an empty string so the aggregator simply omits the section.

    Functions

    extractStrongBullets
    jaccardSimilarity
    dedupeTakeaways
    harvestCandidates
    buildKeyTakeaways

    Interfaces

    Takeaway
    BuildKeyTakeawaysOptions

    Variables

    MIN_TAKEAWAYS
    MAX_TAKEAWAYS
    KEY_TAKEAWAYS_SECTION_ID
    KEY_TAKEAWAYS_SECTION_TITLE