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

Method addToHistory

src/tools/ToolManager.ts:381–388  ·  view source on GitHub ↗

* 添加到历史记录

(history: ToolExecutionHistory)

Source from the content-addressed store, hash-verified

379 * 添加到历史记录
380 */
381 private addToHistory(history: ToolExecutionHistory): void {
382 this.executionHistory.push(history);
383
384 // 限制历史记录大小
385 if (this.executionHistory.length > this.config.maxHistorySize) {
386 this.executionHistory = this.executionHistory.slice(-this.config.maxHistorySize);
387 }
388 }
389
390 /**
391 * 日志记录

Callers 1

callToolMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected