MCPcopy Create free account
hub / github.com/KnowledgeXLab/LeanRAG / get_tokens_cosumption

Method get_tokens_cosumption

tools/utils.py:162–166  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

160 self.TOTAL_TOKEN_COST = 0
161 self.TOTAL_API_CALL_COST = 0
162 def get_tokens_cosumption(self):
163
164 return self.TOTAL_TOKEN_COST, self.TOTAL_API_CALL_COST
165
166 # time.sleep(startup_delay) # 等待所有实例启动
167
168
169

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected