> ## 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.oai.openai_utils.retrieve_assistants_by_name

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

#### retrieve\_assistants\_by\_name

```python theme={null}
retrieve_assistants_by_name(client: OpenAI, name: str) -> list['Assistant']
```

Return the assistants with the given name from OAI assistant API

<b>Parameters:</b>

| Name     | Description      |
| -------- | ---------------- |
| `client` | **Type:** OpenAI |
| `name`   | **Type:** str    |

<br />
