Skip to main content

LangChainInteroperability

A class implementing the Interoperable protocol for converting Langchain tools into a general Tool format.
This class takes a LangchainTool and converts it into a standard Tool object, ensuring compatibility between Langchain tools and other systems that expect the Tool format.

Static Methods

convert_tool

Converts a given Langchain tool into a general Tool format.
This method verifies that the provided tool is a valid LangchainTool, processes the tool’s input and description, and returns a standardized Tool object.
Parameters: Returns:

get_unsupported_reason