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

Function isStructuredTool

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

    Parameters

    • Optionaltool: JsonSchema7Type | ToolDefinition | StructuredToolInterface<ToolSchemaBase, any, any>

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

    Returns tool is StructuredToolInterface<ToolSchemaBase, any, any>

    Whether the inputted tool is an instance of StructuredToolInterface.

    • Defined in langchain-core/src/tools/types.ts:350

Settings

Member Visibility
LangChain.js
  • Loading...

Generated using TypeDoc