MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getToolName

Function getToolName

src/core/task/build-tools.ts:55–57  ·  view source on GitHub ↗

* Extracts the function name from a tool definition.

(tool: OpenAI.Chat.ChatCompletionTool)

Source from the content-addressed store, hash-verified

53 * Extracts the function name from a tool definition.
54 */
55function getToolName(tool: OpenAI.Chat.ChatCompletionTool): string {
56 return (tool as OpenAI.Chat.ChatCompletionFunctionTool).function.name
57}
58
59/**
60 * Builds the complete tools array for native protocol requests.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected