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

Method getToolResult

src/context/storage/CacheStore.ts:155–159  ·  view source on GitHub ↗

* 获取缓存的工具调用结果

(toolName: string, input: any)

Source from the content-addressed store, hash-verified

153 * 获取缓存的工具调用结果
154 */
155 getToolResult(toolName: string, input: any): any {
156 const inputHash = this.hashInput(input);
157 const key = `tool:${toolName}:${inputHash}`;
158 return this.get(key);
159 }
160
161 /**
162 * 缓存上下文压缩结果

Callers 1

getCachedToolResultMethod · 0.80

Calls 2

hashInputMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected