• Preparing search index...
  • The search index is not available
LangChain.js
  • LangChain.js
  • @langchain/core
  • utils/function_calling
  • isStructuredTool

Function isStructuredTool

  • isStructuredTool(tool?): tool is StructuredToolInterface<ZodObjectAny>
  • Confirm whether the inputted tool is an instance of StructuredToolInterface.

    Parameters

    • Optionaltool: Record<string, any> | StructuredToolInterface<ZodObjectAny>

      The tool to check if it is an instance of StructuredToolInterface.

    Returns tool is StructuredToolInterface<ZodObjectAny>

    Whether the inputted tool is an instance of StructuredToolInterface.

    • Defined in langchain-core/src/utils/function_calling.ts:92

Settings

Member Visibility
LangChain.js
  • Loading...

Generated using TypeDoc