> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.interop.LangChainInteroperability

<h2 id="autogen.interop.LangChainInteroperability" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

  <span class="doc doc-object-name doc-class-name">LangChainInteroperability</span>
</h2>

```python theme={null}
LangChainInteroperability()
```

A class implementing the `Interoperable` protocol for converting Langchain tools
into a general `Tool` format.<br />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

<code class="doc-symbol doc-symbol-heading doc-symbol-method" />

#### convert\_tool

```python theme={null}
convert_tool(
    cls,
    tool: Any,
    **kwargs: Any
) -> Tool
```

Converts a given Langchain tool into a general `Tool` format.<br />This method verifies that the provided tool is a valid `LangchainTool`,
processes the tool's input and description, and returns a standardized
`Tool` object.<br />

<b>Parameters:</b>

| Name       | Description                                                                                  |
| ---------- | -------------------------------------------------------------------------------------------- |
| `cls`      |                                                                                              |
| `tool`     | The tool to convert, expected to be an instance of `LangchainTool`.<br /><br />**Type:** Any |
| `**kwargs` | Additional arguments, which are not supported by this method.<br /><br />**Type:** Any       |

<b>Returns:</b>

| Type                                           | Description                                                           |
| ---------------------------------------------- | --------------------------------------------------------------------- |
| [Tool](/docs/api-reference/autogen/tools/Tool) | Tool: A standardized `Tool` object converted from the Langchain tool. |

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-method" />

#### get\_unsupported\_reason

```python theme={null}
get_unsupported_reason() -> str | None
```

<br />
