> ## 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.chat.a_initiate_chats

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

#### a\_initiate\_chats

```python theme={null}
a_initiate_chats(chat_queue: list[dict[str, Any]]) -> dict[int, ChatResult]
```

(async) Initiate a list of chats.<br />

<b>Parameters:</b>

| Name         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `chat_queue` | A list of dictionaries containing the information about the chats.<br /><br />Each dictionary should contain the input arguments for [`ConversableAgent.initiate_chat`](../../../ConversableAgent#initiate-chat).<br /><br />For example: - `"sender"` - the sender agent.<br /><br />- `"recipient"` - the recipient agent.<br /><br />- `"clear_history"` (bool) - whether to clear the chat history with the agent.<br /><br />Default is True.<br /><br />- `"silent"` (bool or None) - (Experimental) whether to print the messages in this conversation.<br /><br />Default is False.<br /><br />- `"cache"` (Cache or None) - the cache client to use for this conversation.<br /><br />Default is None.<br /><br />- `"max_turns"` (int or None) - maximum number of turns for the chat.<br /><br />If None, the chat will continue until a termination condition is met.<br /><br />Default is None.<br /><br />- `"summary_method"` (str or callable) - a string or callable specifying the method to get a summary from the chat.<br /><br />Default is DEFAULT\_summary\_method, i.e., "last\_msg".<br /><br />- `"summary_args"` (dict) - a dictionary of arguments to be passed to the summary\_method.<br /><br />Default is \{}.<br /><br />- `"message"` (str, callable or None) - if None, input() will be called to get the initial message.<br /><br />- `**context` - additional context information to be passed to the chat.<br /><br />- `"carryover"` - It can be used to specify the carryover information to be passed to this chat.<br /><br />If provided, we will combine this carryover with the "message" content when generating the initial chat message in `generate_init_message`.<br /><br />- `"finished_chat_indexes_to_exclude_from_carryover"` - It can be used by specifying a list of indexes of the finished\_chats list, from which to exclude the summaries for carryover.<br /><br />If 'finished\_chat\_indexes\_to\_exclude\_from\_carryover' is not provided or an empty list, then summary from all the finished chats will be taken.<br /><br />**Type:** list\[dict\[str, typing.Any]] |

<b>Returns:</b>

| Type                                                             | Description                                                                                    |
| ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| dict\[int, [ChatResult](/docs/api-reference/autogen/ChatResult)] | - (Dict): a dict of ChatId: ChatResult corresponding to the finished chats in the chat\_queue. |

<br />
