* 获取上下文统计信息
()
| 807 | * 获取上下文统计信息 |
| 808 | */ |
| 809 | public async getContextStats(): Promise<{ |
| 810 | currentSession: string | null; |
| 811 | memory: any; |
| 812 | cache: any; |
| 813 | storage: any; |
| 814 | } | null> { |
| 815 | const contextComponent = this.getContextComponent(); |
| 816 | if (!contextComponent) { |
| 817 | return null; |
| 818 | } |
| 819 | return await contextComponent.getStats(); |
| 820 | } |
| 821 | |
| 822 | // ======================== 工具管理协调方法 ======================== |
| 823 |
no test coverage detected