* 搜索历史会话
(
query: string,
limit: number = 10
)
| 294 | * 搜索历史会话 |
| 295 | */ |
| 296 | public async searchSessions( |
| 297 | query: string, |
| 298 | limit: number = 10 |
| 299 | ): Promise< |
| 300 | Array<{ |
| 301 | sessionId: string; |
| 302 | summary: string; |
| 303 | lastActivity: number; |
| 304 | relevanceScore: number; |
| 305 | }> |
| 306 | > { |
| 307 | this.ensureReady(); |
| 308 | return await this.contextManager!.searchSessions(query, limit); |
| 309 | } |
| 310 | |
| 311 | /** |
| 312 | * 获取缓存的工具调用结果 |
no test coverage detected