mirror of
https://github.com/instructkr/claw-code.git
synced 2026-04-03 17:24:47 +08:00
9 lines
210 B
Python
9 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
|