列出所有会话 ID。
(self)
| 114 | return [Message.model_validate(e.message) for e in chain] |
| 115 | |
| 116 | def list_sessions(self) -> list[str]: |
| 117 | """列出所有会话 ID。""" |
| 118 | if not self._storage_dir.exists(): |
| 119 | return [] |
| 120 | return sorted( |
| 121 | p.stem for p in self._storage_dir.glob("*.jsonl") |
| 122 | ) |
| 123 | |
| 124 | def detect_interruption(self, session_id: str) -> Optional[str]: |
| 125 | """检测中断类型。 |
nothing calls this directly
no outgoing calls
no test coverage detected