a_initiate_group_chat
autogen.agentchat.a_initiate_group_chat async #
a_initiate_group_chat(pattern, messages, max_rounds=20, safeguard_policy=None, safeguard_llm_config=None, mask_llm_config=None)
Initialize and run a group chat using a pattern for configuration, asynchronously.
| PARAMETER | DESCRIPTION |
|---|---|
pattern | Pattern object that encapsulates the chat configuration. TYPE: |
messages | Initial message(s). |
max_rounds | Maximum number of conversation rounds. TYPE: |
safeguard_policy | Optional safeguard policy dict or path to JSON file. |
safeguard_llm_config | Optional LLM configuration for safeguard checks. TYPE: |
mask_llm_config | Optional LLM configuration for masking. TYPE: |
| RETURNS | DESCRIPTION |
|---|---|
ChatResult | Conversations chat history. TYPE: |
ContextVariables | Updated Context variables. TYPE: |
Agent | "ConversableAgent": Last speaker. |
Source code in autogen/agentchat/group/multi_agent_chat.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | |