Function: isVercelFunctionTool()
isVercelFunctionTool(
tool
): tool is ExtendedTool<never, never, never, CustomFunctionContext<unknown> | CustomFunctionContextCallback<unknown>>
Defined in: packages/core/src/utils/create-assistant.ts:182
Type guard to check if a tool is a Vercel function tool
Parameters
tool
The tool to check
RegisterFunctionCallingProps
| ExtendedTool
<never
, never
, never
, CustomFunctionContext
<unknown
> | CustomFunctionContextCallback
<unknown
>>
Returns
tool is ExtendedTool<never, never, never, CustomFunctionContext<unknown> | CustomFunctionContextCallback<unknown>>
True if the tool is a Vercel function tool