MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / add

Method add

utils/llm_client.py:21–26  ·  view source on GitHub ↗
(self, input_tokens: int, output_tokens: int, latency: float)

Source from the content-addressed store, hash-verified

19 total_latency: float = 0.0
20
21 def add(self, input_tokens: int, output_tokens: int, latency: float) -> None:
22 self.input_tokens += input_tokens
23 self.output_tokens += output_tokens
24 self.total_tokens += input_tokens + output_tokens
25 self.call_count += 1
26 self.total_latency += latency
27
28 def merge(self, other: "TokenUsage") -> None:
29 self.input_tokens += other.input_tokens

Callers 5

recordMethod · 0.45
addClassesFunction · 0.45
bulma-carousel.jsFile · 0.45
zFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected