(params)
| 81774 | } |
| 81775 | function shouldParseToolCall(params, toolCall) { |
| 81776 | if (!params) { |
| 81777 | return false; |
| 81778 | } |
| 81779 | const inputTool = params.tools?.find((inputTool2) => inputTool2.function?.name === toolCall.function.name); |
| 81780 | return isAutoParsableTool(inputTool) || inputTool?.function.strict || false; |
| 81781 | } |
| 81782 | function hasAutoParseableInput(params) { |
| 81783 | if (isAutoParsableResponseFormat(params.response_format)) { |
| 81784 | return true; |
no test coverage detected
searching dependent graphs…