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

Method record

tutorials/05_agentic_loop_complete.py:203–206  ·  view source on GitHub ↗
(self, usage: TokenUsage)

Source from the content-addressed store, hash-verified

201 self._cumulative_output = 0
202
203 def record(self, usage: TokenUsage):
204 self.turns += 1
205 self._cumulative_input += usage.input_tokens
206 self._cumulative_output += usage.output_tokens
207
208 def cumulative_usage(self) -> TokenUsage:
209 return TokenUsage(

Callers 1

run_turnMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected