* 获取记忆统计信息 * @returns 统计信息
()
| 265 | * @returns 统计信息 |
| 266 | */ |
| 267 | async getStats(): Promise<{ |
| 268 | workingMemory: { |
| 269 | threadCount: number; |
| 270 | resourceCount: number; |
| 271 | totalSize: number; |
| 272 | }; |
| 273 | semanticMemory: { |
| 274 | chunkCount: number; |
| 275 | totalSize: number; |
| 276 | }; |
| 277 | }> { |
| 278 | return this.request("/v1/memory/stats"); |
| 279 | } |
| 280 | |
| 281 | /** |
| 282 | * 清空所有记忆(危险操作!) |