> ## 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.agentchat.run_group_chat

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

#### run\_group\_chat

```python theme={null}
run_group_chat(
    pattern: Pattern,
    messages: list[dict[str, Any]] | str,
    max_rounds: int = 20
) -> RunResponseProtocol
```

<b>Parameters:</b>

| Name         | Description                                    |
| ------------ | ---------------------------------------------- |
| `pattern`    | **Type:** Pattern                              |
| `messages`   | **Type:** list\[dict\[str, typing.Any]] \| str |
| `max_rounds` | **Type:** int<br /><br />**Default:** 20       |

<br />
