* Extracts the function name from a tool definition.
(tool: OpenAI.Chat.ChatCompletionTool)
| 53 | * Extracts the function name from a tool definition. |
| 54 | */ |
| 55 | function 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. |
no outgoing calls
no test coverage detected