> ## 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.Interoperability

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

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

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

A class to handle interoperability between different tool types.<br />This class allows the conversion of tools to various interoperability classes and provides functionality
for retrieving and registering interoperability classes.

### Class Attributes

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

#### registry

<br />

<br />

### Static Methods

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

#### convert\_tool

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

Converts a given tool to an instance of a specified interoperability type.<br />

<b>Parameters:</b>

| Name       | Description                                                                   |
| ---------- | ----------------------------------------------------------------------------- |
| `tool`     | The tool object to be converted.<br /><br />**Type:** Any                     |
| `type`     | The type of interoperability to convert the tool to.<br /><br />**Type:** str |
| `**kwargs` | Additional arguments to be passed during conversion.<br /><br />**Type:** Any |

<b>Returns:</b>

| Type                                           | Description               |
| ---------------------------------------------- | ------------------------- |
| [Tool](/docs/api-reference/autogen/tools/Tool) | Tool: The converted tool. |

<br />

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

#### get\_interoperability\_class

```python theme={null}
get_interoperability_class(type: str) -> type[Interoperable]
```

Retrieves the interoperability class corresponding to the specified type.<br />

<b>Parameters:</b>

| Name   | Description                                                                  |
| ------ | ---------------------------------------------------------------------------- |
| `type` | The type of the interoperability class to retrieve.<br /><br />**Type:** str |

<b>Returns:</b>

| Type                                                                      | Description                                            |
| ------------------------------------------------------------------------- | ------------------------------------------------------ |
| type\[[Interoperable](/docs/api-reference/autogen/interop/Interoperable)] | type\[Interoperable]: The interoperability class type. |

<br />

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

#### get\_supported\_types

```python theme={null}
get_supported_types() -> list[str]
```

Returns a sorted list of all supported interoperability types.<br />Returns: <br />    List\[str]: A sorted list of strings representing the supported interoperability types.

<b>Returns:</b>

| Type       | Description                                                                             |
| ---------- | --------------------------------------------------------------------------------------- |
| list\[str] | List\[str]: A sorted list of strings representing the supported interoperability types. |

<br />
