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

Method remaining_chars

control_layer.py:342–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

340 return self.total_tokens - self.used()
341
342 def remaining_chars(self) -> int:
343 # Rough inverse for truncation: 1 token ~ 4 chars (English)
344 return self.remaining() * 4
345
346 def report(self) -> Dict[str, int]:
347 return dict(self._slots)

Callers 1

buildMethod · 0.95

Calls 1

remainingMethod · 0.95

Tested by

no test coverage detected