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

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

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

```python theme={null}
AgentNameConflictError(
    msg: str = 'Found multiple agents with the same name.',
    *args: Any,
    **kwargs: Any
)
```

Common base class for all non-exit exceptions.

<b>Parameters:</b>

| Name       | Description                                                                       |
| ---------- | --------------------------------------------------------------------------------- |
| `msg`      | **Type:** str<br /><br />**Default:** 'Found multiple agents with the same name.' |
| `*args`    | **Type:** Any                                                                     |
| `**kwargs` | **Type:** Any                                                                     |
