|
61 | 61 | },
|
62 | 62 | {
|
63 | 63 | "cell_type": "code",
|
64 |
| - "execution_count": 2, |
| 64 | + "execution_count": 5, |
65 | 65 | "id": "dca301a4",
|
66 | 66 | "metadata": {},
|
67 | 67 | "outputs": [],
|
|
119 | 119 | },
|
120 | 120 | {
|
121 | 121 | "cell_type": "code",
|
122 |
| - "execution_count": 3, |
| 122 | + "execution_count": 6, |
123 | 123 | "id": "9fb85afb",
|
124 | 124 | "metadata": {},
|
125 | 125 | "outputs": [
|
|
134 | 134 | "--------------------------------------------------------------------------------\n",
|
135 | 135 | "\u001b[33mchatbot\u001b[0m (to user_proxy):\n",
|
136 | 136 | "\n",
|
137 |
| - "\u001b[32m***** Suggested tool Call (call_thUjscBN349eGd6xh3XrVT18): timer *****\u001b[0m\n", |
| 137 | + "\u001b[32m***** Suggested tool Call (call_mZqUtVEf6hwarnCqdiKtVhAE): timer *****\u001b[0m\n", |
138 | 138 | "Arguments: \n",
|
139 |
| - "{\"num_seconds\":\"5\"}\n", |
| 139 | + "{\n", |
| 140 | + " \"num_seconds\": \"5\"\n", |
| 141 | + "}\n", |
140 | 142 | "\u001b[32m**********************************************************************\u001b[0m\n",
|
141 | 143 | "\n",
|
142 | 144 | "--------------------------------------------------------------------------------\n",
|
143 | 145 | "\u001b[35m\n",
|
144 |
| - ">>>>>>>> EXECUTING ASYNC FUNCTION timer...\u001b[0m\n", |
| 146 | + ">>>>>>>> EXECUTING ASYNC FUNCTION timer...\u001b[0m\n" |
| 147 | + ] |
| 148 | + }, |
| 149 | + { |
| 150 | + "name": "stdout", |
| 151 | + "output_type": "stream", |
| 152 | + "text": [ |
145 | 153 | "\u001b[33muser_proxy\u001b[0m (to chatbot):\n",
|
146 | 154 | "\n",
|
147 | 155 | "\u001b[33muser_proxy\u001b[0m (to chatbot):\n",
|
|
153 | 161 | "--------------------------------------------------------------------------------\n",
|
154 | 162 | "\u001b[33mchatbot\u001b[0m (to user_proxy):\n",
|
155 | 163 | "\n",
|
156 |
| - "\u001b[32m***** Suggested tool Call (call_ubo7cKE3TKumGHkqGjQtZisy): stopwatch *****\u001b[0m\n", |
| 164 | + "\u001b[32m***** Suggested tool Call (call_xHz73PpH4ipdv7kTxK2AiVCf): stopwatch *****\u001b[0m\n", |
157 | 165 | "Arguments: \n",
|
158 |
| - "{\"num_seconds\":\"5\"}\n", |
| 166 | + "{\n", |
| 167 | + " \"num_seconds\": \"5\"\n", |
| 168 | + "}\n", |
159 | 169 | "\u001b[32m**************************************************************************\u001b[0m\n",
|
160 | 170 | "\n",
|
161 | 171 | "--------------------------------------------------------------------------------\n",
|
162 | 172 | "\u001b[35m\n",
|
163 |
| - ">>>>>>>> EXECUTING FUNCTION stopwatch...\u001b[0m\n", |
| 173 | + ">>>>>>>> EXECUTING ASYNC FUNCTION stopwatch...\u001b[0m\n", |
164 | 174 | "\u001b[33muser_proxy\u001b[0m (to chatbot):\n",
|
165 | 175 | "\n",
|
166 | 176 | "\u001b[33muser_proxy\u001b[0m (to chatbot):\n",
|
|
172 | 182 | "--------------------------------------------------------------------------------\n",
|
173 | 183 | "\u001b[33mchatbot\u001b[0m (to user_proxy):\n",
|
174 | 184 | "\n",
|
175 |
| - "Both the timer and the stopwatch for 5 seconds have been completed. \n", |
176 |
| - "\n", |
177 | 185 | "TERMINATE\n",
|
178 | 186 | "\n",
|
179 | 187 | "--------------------------------------------------------------------------------\n"
|
|
245 | 253 | },
|
246 | 254 | {
|
247 | 255 | "cell_type": "code",
|
248 |
| - "execution_count": 4, |
| 256 | + "execution_count": 7, |
249 | 257 | "id": "2472f95c",
|
250 | 258 | "metadata": {},
|
251 | 259 | "outputs": [],
|
|
280 | 288 | },
|
281 | 289 | {
|
282 | 290 | "cell_type": "code",
|
283 |
| - "execution_count": 5, |
| 291 | + "execution_count": 8, |
284 | 292 | "id": "e2c9267a",
|
285 | 293 | "metadata": {},
|
286 |
| - "outputs": [], |
| 294 | + "outputs": [ |
| 295 | + { |
| 296 | + "name": "stdout", |
| 297 | + "output_type": "stream", |
| 298 | + "text": [ |
| 299 | + "\u001b[33muser_proxy\u001b[0m (to chat_manager):\n", |
| 300 | + "\n", |
| 301 | + "\n", |
| 302 | + "1) Create a timer for 5 seconds.\n", |
| 303 | + "2) a stopwatch for 5 seconds.\n", |
| 304 | + "3) Pretty print the result as md.\n", |
| 305 | + "4) when 1-3 are done, terminate the group chat\n", |
| 306 | + "\n", |
| 307 | + "--------------------------------------------------------------------------------\n", |
| 308 | + "\u001b[33muser_proxy\u001b[0m (to chat_manager):\n", |
| 309 | + "\n", |
| 310 | + "\n", |
| 311 | + "\n", |
| 312 | + "--------------------------------------------------------------------------------\n", |
| 313 | + "\u001b[33mchatbot\u001b[0m (to chat_manager):\n", |
| 314 | + "\n", |
| 315 | + "\u001b[32m***** Suggested tool Call (call_rdYofiAgFpRfaZaCT4tzAhOb): timer *****\u001b[0m\n", |
| 316 | + "Arguments: \n", |
| 317 | + "{\n", |
| 318 | + " \"num_seconds\": \"5\"\n", |
| 319 | + "}\n", |
| 320 | + "\u001b[32m**********************************************************************\u001b[0m\n", |
| 321 | + "\n", |
| 322 | + "--------------------------------------------------------------------------------\n", |
| 323 | + "\u001b[35m\n", |
| 324 | + ">>>>>>>> EXECUTING ASYNC FUNCTION timer...\u001b[0m\n", |
| 325 | + "\u001b[33muser_proxy\u001b[0m (to chat_manager):\n", |
| 326 | + "\n", |
| 327 | + "\u001b[33muser_proxy\u001b[0m (to chat_manager):\n", |
| 328 | + "\n", |
| 329 | + "\u001b[32m***** Response from calling tool \"timer\" *****\u001b[0m\n", |
| 330 | + "Timer is done!\n", |
| 331 | + "\u001b[32m**********************************************\u001b[0m\n", |
| 332 | + "\n", |
| 333 | + "--------------------------------------------------------------------------------\n", |
| 334 | + "\u001b[33muser_proxy\u001b[0m (to chat_manager):\n", |
| 335 | + "\n", |
| 336 | + "\n", |
| 337 | + "\n", |
| 338 | + "--------------------------------------------------------------------------------\n", |
| 339 | + "\u001b[33muser_proxy\u001b[0m (to chat_manager):\n", |
| 340 | + "\n", |
| 341 | + "\n", |
| 342 | + "\n", |
| 343 | + "--------------------------------------------------------------------------------\n", |
| 344 | + "\u001b[33muser_proxy\u001b[0m (to chat_manager):\n", |
| 345 | + "\n", |
| 346 | + "\n", |
| 347 | + "\n", |
| 348 | + "--------------------------------------------------------------------------------\n" |
| 349 | + ] |
| 350 | + } |
| 351 | + ], |
287 | 352 | "source": [
|
288 | 353 | "# todo: remove comment after fixing https://github.com/microsoft/autogen/issues/1205\n",
|
289 |
| - "# await user_proxy.a_initiate_chat( # noqa: F704\n", |
290 |
| - "# manager,\n", |
291 |
| - "# message=\"\"\"\n", |
292 |
| - "# 1) Create a timer for 5 seconds.\n", |
293 |
| - "# 2) a stopwatch for 5 seconds.\n", |
294 |
| - "# 3) Pretty print the result as md.\n", |
295 |
| - "# 4) when 1-3 are done, terminate the group chat\"\"\",\n", |
296 |
| - "# )" |
| 354 | + "await user_proxy.a_initiate_chat( # noqa: F704\n", |
| 355 | + " manager,\n", |
| 356 | + " message=\"\"\"\n", |
| 357 | + "1) Create a timer for 5 seconds.\n", |
| 358 | + "2) a stopwatch for 5 seconds.\n", |
| 359 | + "3) Pretty print the result as md.\n", |
| 360 | + "4) when 1-3 are done, terminate the group chat\"\"\",\n", |
| 361 | + ")" |
297 | 362 | ]
|
298 | 363 | },
|
299 | 364 | {
|
|
0 commit comments