Confirm whether the inputted tool is an instance of StructuredToolInterface.
isStructuredTool(
tool: ToolDefinition | JsonSchema7Type | StructuredToolInterface<ToolSchemaBase, any, any>
): tool is StructuredToolInterface<ToolSchemaBase, any, any>| Name | Type | Description |
|---|---|---|
tool | ToolDefinition | JsonSchema7Type | StructuredToolInterface<ToolSchemaBase, any, any> | The tool to check if it is an instance of |