feat: add aggregated news retrieval methods for top headlines and latest news

This commit is contained in:
2025-10-02 00:32:49 +02:00
parent 8b81cd5a71
commit 27ad095713
3 changed files with 25 additions and 7 deletions

View File

@@ -63,9 +63,6 @@ def aggregate_product_info(products: dict[str, list[ProductInfo]]) -> list[Produ
product.price = (prices / volume_sum) if volume_sum > 0 else 0.0
aggregated_products.append(product)
confidence = _calculate_confidence(product_list, sources) # TODO necessary?
return aggregated_products
def _calculate_confidence(products: list[ProductInfo], sources: list[str]) -> float: