MCPcopy Create free account
hub / github.com/TanStack/ai / makeToolCall

Function makeToolCall

packages/ai/tests/tool-call-manager.test.ts:508–518  ·  view source on GitHub ↗
(
    id: string,
    name: string,
    args: string = '{}',
  )

Source from the content-addressed store, hash-verified

506 }
507
508 function makeToolCall(
509 id: string,
510 name: string,
511 args: string = '{}',
512 ): ToolCall {
513 return {
514 id,
515 type: 'function',
516 function: { name, arguments: args },
517 }
518 }
519
520 /** Helper to drain the async generator from executeToolCalls and return its result */
521 async function drainExecuteToolCalls(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected