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

Method get_memory_chunks

methods/base.py:133–135  ·  view source on GitHub ↗

Get copy of memory chunks.

(self)

Source from the content-addressed store, hash-verified

131 """Set context ID for distinguishing personas."""
132 self._context_id = context_id
133
134 def count_tokens(self, text: str) -> int:
135 """Count tokens in text."""
136 if not text:
137 return 0
138 return len(self._tokenizer.encode(text))

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected