MCPcopy Create free account
hub / github.com/TransluceAI/observatory / token_strs

Method token_strs

lib/util/util/chat_input.py:50–51  ·  view source on GitHub ↗
(self, subject: "Subject")

Source from the content-addressed store, hash-verified

48 pass
49
50 def token_strs(self, subject: "Subject") -> list[str]:
51 return [subject.decode(x) for x in self.tokenize(subject)]
52
53 def is_empty(self, subject: "Subject") -> bool:
54 return len(self.tokenize(subject)) == 0

Callers

nothing calls this directly

Calls 2

tokenizeMethod · 0.95
decodeMethod · 0.45

Tested by

no test coverage detected