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

Function delete_session

openkb/agent/chat_session.py:247–252  ·  view source on GitHub ↗
(kb_dir: Path, session_id: str)

Source from the content-addressed store, hash-verified

245
246
247def delete_session(kb_dir: Path, session_id: str) -> bool:
248 path = chats_dir(kb_dir) / f"{session_id}.json"
249 if path.exists():
250 path.unlink()
251 return True
252 return False
253
254
255def relative_time(iso_str: str) -> str:

Callers 1

chatFunction · 0.90

Calls 1

chats_dirFunction · 0.85

Tested by

no test coverage detected