MCPcopy Index your code
hub / github.com/simstudioai/sim / toolCall

Function toolCall

apps/sim/providers/vllm/index.test.ts:109–113  ·  view source on GitHub ↗
(id: string, name: string, args = '{}')

Source from the content-addressed store, hash-verified

107}
108
109const toolCall = (id: string, name: string, args = '{}'): ToolCall => ({
110 id,
111 type: 'function',
112 function: { name, arguments: args },
113})
114
115/** Payload passed to the Nth `chat.completions.create` call. */
116const createPayload = (callIndex: number) => mockCreate.mock.calls[callIndex][0]

Callers 1

index.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected