MCPcopy Create free account
hub / github.com/Louisym/MiniCC / cumulative_usage

Method cumulative_usage

tutorials/05_agentic_loop_complete.py:208–212  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

206 self._cumulative_output += usage.output_tokens
207
208 def cumulative_usage(self) -> TokenUsage:
209 return TokenUsage(
210 input_tokens=self._cumulative_input,
211 output_tokens=self._cumulative_output,
212 )
213
214 def summary(self) -> str:
215 total = self._cumulative_input + self._cumulative_output

Callers 1

run_turnMethod · 0.45

Calls 1

TokenUsageClass · 0.70

Tested by

no test coverage detected