(kb_dir: Path, session_id: str)
| 245 | |
| 246 | |
| 247 | def 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 | |
| 255 | def relative_time(iso_str: str) -> str: |