MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / record

Method record

claw-code/src/cost_tracker.py:11–13  ·  view source on GitHub ↗
(self, label: str, units: int)

Source from the content-addressed store, hash-verified

9 events: list[str] = field(default_factory=list)
10
11 def record(self, label: str, units: int) -> None:
12 self.total_units += units
13 self.events.append(f'{label}:{units}')

Callers 1

apply_cost_hookFunction · 0.45

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected