Research-Stack/1-Distributed-Systems/agents/claw/src/costHook.py

8 lines
210 B
Python

from __future__ import annotations
from .cost_tracker import CostTracker
def apply_cost_hook(tracker: CostTracker, label: str, units: int) -> CostTracker:
tracker.record(label, units)
return tracker