* 加载现有的上下文会话
(sessionId: string)
| 627 | * 加载现有的上下文会话 |
| 628 | */ |
| 629 | public async loadContextSession(sessionId: string): Promise<boolean> { |
| 630 | const contextComponent = this.getContextComponent(); |
| 631 | if (!contextComponent) { |
| 632 | throw new Error('上下文组件未启用'); |
| 633 | } |
| 634 | return await contextComponent.loadSession(sessionId); |
| 635 | } |
| 636 | |
| 637 | /** |
| 638 | * 获取当前上下文会话ID |
no test coverage detected