MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _gen_id

Function _gen_id

openkb/agent/chat_session.py:28–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27
28def _gen_id() -> str:
29 ts = datetime.now().strftime("%Y%m%d-%H%M%S")
30 rand = "".join(random.choices(string.ascii_lowercase + string.digits, k=3))
31 return f"{ts}-{rand}"
32
33
34def chats_dir(kb_dir: Path) -> Path:

Callers 1

newMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected