• Preparing search index...
  • The search index is not available
LangChain.js - v0.2.11
  • 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:54

Settings

Member Visibility
LangChain.js - v0.2.11
  • Loading...

Generated using TypeDoc