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

Function makeToolCall

packages/kosong/test/simple-toolset.test.ts:6–12  ·  view source on GitHub ↗
(id: string, name: string, args: string | null)

Source from the content-addressed store, hash-verified

4import type { ToolReturnValue } from './fixtures/simple-toolset';
5import { describe, expect, it } from 'vitest';
6function makeToolCall(id: string, name: string, args: string | null): ToolCall {
7 return {
8 type: 'function',
9 id,
10 name, arguments: args,
11 };
12}
13describe('SimpleToolset', () => {
14 it('handle() invokes the registered handler and returns ToolResult', async () => {
15 const toolset = new SimpleToolset();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected