MCPcopy
hub / github.com/continuedev/continue / createToolCall

Function createToolCall

core/llm/countTokens.test.ts:210–221  ·  view source on GitHub ↗
(
    id: string,
    name: string,
    args: object,
  )

Source from the content-addressed store, hash-verified

208 });
209
210 const createToolCall = (
211 id: string,
212 name: string,
213 args: object,
214 ): ToolCall => ({
215 id,
216 type: "function",
217 function: {
218 name,
219 arguments: JSON.stringify(args),
220 },
221 });
222
223 test("extractToolSequence should handle a single user message", () => {
224 const messages: ChatMessage[] = [createUserMessage("Hello world!")];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected