> ## 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.group.group_utils.ensure_handoff_agents_in_group

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

#### ensure\_handoff\_agents\_in\_group

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

Ensure the agents in handoffs are in the group chat.

<b>Parameters:</b>

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

<br />
