in lib/parser.ts [246:260]
export function validateInputTools(tools: ChatCompletionTool[] | undefined) {
for (const tool of tools ?? []) {
if (tool.type !== "function") {
throw new OpenAIError(
`Currently only \`function\` tool types support auto-parsing; Received \`${tool.type}\``,
);
}
if (tool.function.strict !== true) {
throw new OpenAIError(
`The \`${tool.function.name}\` tool is not marked with \`strict: true\`. Only strict function tools can be auto-parsed`,
);
}
}
}