> ## Documentation Index
> Fetch the complete documentation index at: https://private-04b27de1.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.agentchat.group.group_utils.prepare_exclude_transit_messages

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

#### prepare\_exclude\_transit\_messages

```python theme={null}
prepare_exclude_transit_messages(agents: list['ConversableAgent']) -> 
```

Preparation for excluding transit messages by getting all tool names and registering a hook on agents to remove those messages.

<b>Parameters:</b>

| Name     | Description                         |
| -------- | ----------------------------------- |
| `agents` | **Type:** list\['ConversableAgent'] |

<br />
