From fc95c43d4e37cf98ddd288252b80d4f07b59f537 Mon Sep 17 00:00:00 2001 From: Nick Bobrowski <39348559+bonk1t@users.noreply.github.com> Date: Sun, 8 Dec 2024 16:28:50 +0000 Subject: [PATCH 1/3] Add a missing argument --- agency_swarm/agency/agency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agency_swarm/agency/agency.py b/agency_swarm/agency/agency.py index d1e45270..e5cde128 100644 --- a/agency_swarm/agency/agency.py +++ b/agency_swarm/agency/agency.py @@ -757,7 +757,7 @@ def bot(original_message, history): dropdown.change(handle_dropdown_change, dropdown) file_upload.change(handle_file_upload, file_upload) msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then( - bot, [msg, chatbot], [msg, chatbot, dropdown] + bot, [msg, chatbot, dropdown], [msg, chatbot, dropdown] ) # Enable queuing for streaming intermediate outputs From 15531775e3bdc1d09ed92181ac4026b59f8f5ec6 Mon Sep 17 00:00:00 2001 From: Nick Bobrowski <39348559+bonk1t@users.noreply.github.com> Date: Sun, 8 Dec 2024 16:47:41 +0000 Subject: [PATCH 2/3] Bug fix --- agency_swarm/agency/agency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agency_swarm/agency/agency.py b/agency_swarm/agency/agency.py index e5cde128..743739bf 100644 --- a/agency_swarm/agency/agency.py +++ b/agency_swarm/agency/agency.py @@ -636,7 +636,7 @@ def on_all_streams_end(cls): cls.message_output = None chatbot_queue.put("[end]") - def bot(original_message, history): + def bot(original_message, history, dropdown): nonlocal attachments nonlocal message_file_names nonlocal recipient_agent From 914b440a500b45371a4e428ff8d3d3534361ab83 Mon Sep 17 00:00:00 2001 From: Nick Bobrowski <39348559+bonk1t@users.noreply.github.com> Date: Sun, 8 Dec 2024 16:49:21 +0000 Subject: [PATCH 3/3] Update the notebook --- notebooks/os_models_with_astra_assistants_api.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebooks/os_models_with_astra_assistants_api.ipynb b/notebooks/os_models_with_astra_assistants_api.ipynb index f3ff337f..cf7e4bb2 100644 --- a/notebooks/os_models_with_astra_assistants_api.ipynb +++ b/notebooks/os_models_with_astra_assistants_api.ipynb @@ -376,7 +376,7 @@ "\n", " return original_user_message, history + [[user_message, None]]\n", "\n", - " def bot(original_message, history):\n", + " def bot(original_message, history, dropdown):\n", " nonlocal message_file_ids\n", " nonlocal message_file_names\n", " nonlocal recipient_agent\n",