Function: isOpenAIFunctionTool()
isOpenAIFunctionTool(
tool
):tool is RegisterFunctionCallingProps
Defined in: packages/core/src/utils/create-assistant.ts:171
Type guard to check if a tool is an OpenAI function tool
Parameters
tool
The tool to check
RegisterFunctionCallingProps
| Tool
Returns
tool is RegisterFunctionCallingProps
True if the tool is an OpenAI function tool