Cyril Dupland
Add post-processing pipeline for carbon impact, pricing, and equivalences. Introduce orchestrator and context management for enhanced metadata handling in agent service.
5227b54
raw
history blame
350 Bytes
"""Shared context for post-processing pipeline."""
from dataclasses import dataclass, field
from typing import Dict, Any
@dataclass
class RunContext:
provider: str
model: str
usage_totals: Dict[str, int]
usage_by_model: Dict[str, Dict[str, int]]
latency_s: float
metadata_out: Dict[str, Any] = field(default_factory=dict)