• Confirm whether the inputted tool is an instance of StructuredToolInterface.

    Parameters

    • Optionaltool: JsonSchema7Type | ToolDefinition | StructuredToolInterface<(JsonSchema7Type | ZodObjectAny | ZodEffects<ZodObjectAny, any, { [x: string]: any; }>), unknown>

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

    Returns tool is StructuredToolInterface<JsonSchema7Type | ZodObjectAny | ZodEffects<ZodObjectAny, any, {}>, unknown>

    Whether the inputted tool is an instance of StructuredToolInterface.