MCPcopy Create free account
hub / github.com/echoVic/blade-code / searchSessions

Method searchSessions

src/agent/ContextComponent.ts:296–309  ·  view source on GitHub ↗

* 搜索历史会话

(
    query: string,
    limit: number = 10
  )

Source from the content-addressed store, hash-verified

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 * 获取缓存的工具调用结果

Callers 1

searchContextSessionsMethod · 0.45

Calls 1

ensureReadyMethod · 0.95

Tested by

no test coverage detected