MCPcopy Create free account
hub / github.com/Emmimal/control-layer / remaining

Method remaining

control_layer.py:339–340  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

337 return sum(self._slots.values())
338
339 def remaining(self) -> int:
340 return self.total_tokens - self.used()
341
342 def remaining_chars(self) -> int:
343 # Rough inverse for truncation: 1 token ~ 4 chars (English)

Callers 4

reserveMethod · 0.95
reserve_tokensMethod · 0.95
remaining_charsMethod · 0.95

Calls 1

usedMethod · 0.95

Tested by 1