MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / remove

Method remove

packages/kosong/test/fixtures/simple-toolset.ts:144–149  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

142 }
143
144 remove(name: string): void {
145 if (!this.toolMap.has(name)) {
146 throw new Error(`Tool \`${name}\` not found in the toolset.`);
147 }
148 this.toolMap.delete(name);
149 }
150
151 handle(toolCall: ToolCall, _options?: { signal?: AbortSignal }): Promise<ToolResult> {
152 const entry = this.toolMap.get(toolCall.name);

Callers

nothing calls this directly

Calls 2

hasMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected