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

Function handle

packages/kosong/test/step.test.ts:255–261  ·  view source on GitHub ↗
(toolCall: ToolCall)

Source from the content-addressed store, hash-verified

253 const toolset: Toolset = {
254 tools: [],
255 handle(toolCall: ToolCall): Promise<ToolResult> {
256 toolHandleCalls++;
257 return Promise.resolve({
258 toolCallId: toolCall.id,
259 returnValue: toolOk({ output: 'should-never-run' }),
260 });
261 },
262 };
263
264 await expect(step(provider, '', toolset, [])).rejects.toThrow(ChatProviderError);

Callers

nothing calls this directly

Calls 4

toolOkFunction · 0.90
resolveMethod · 0.65
rejectMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected