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

Method addToolCall

src/agent/ContextComponent.ts:239–243  ·  view source on GitHub ↗

* 添加工具调用记录

(toolCall: ToolCall)

Source from the content-addressed store, hash-verified

237 * 添加工具调用记录
238 */
239 public async addToolCall(toolCall: ToolCall): Promise<void> {
240 this.ensureReady();
241 await this.contextManager!.addToolCall(toolCall);
242 this.log(`添加工具调用: ${toolCall.name} (${toolCall.status})`);
243 }
244
245 /**
246 * 更新工具状态

Callers 1

smartChatWithContextMethod · 0.45

Calls 2

ensureReadyMethod · 0.95
logMethod · 0.95

Tested by

no test coverage detected