Whether or not the tool is one of StructuredTool, RunnableTool or StructuredToolParams.
It returns is StructuredToolParams since that is the most minimal interface of the three,
while still containing the necessary properties to be passed to a LLM for tool calling.
isLangChainTool(tool: unknown): tool is StructuredToolParams| Name | Type | Description |
|---|---|---|
tool | unknown | The tool to check if it is a LangChain tool. |