| 123456789101112 |
- from __future__ import annotations
- from typing import Any, Dict
- from news_mcp.enrichment.importance import compute_importance
- def enrich_cluster(cluster: Dict[str, Any]) -> Dict[str, Any]:
- cluster = dict(cluster)
- cluster["importance"] = compute_importance(cluster)
- # v1: sentiment/entities left as placeholders (neutral/empty)
- return cluster
|