Async function calling does not work in nested chat [Bug]: #2673
Labels
bug
Something isn't working
function/tool
suggestion and execution of function/tool call
nested-chat
nested chat and society of mind agent
Describe the bug
Nested chat does not work with async tool usage
Steps to reproduce
Convert Scenario 2 example of nested chat available here to use async functions: https://microsoft.github.io/autogen/docs/notebooks/agentchat_nestedchat/
Use the following steps:
a) change function definition of
check_harmful_content
to be asyncb) change
user_proxy.initiate_chat
toawait user_proxy.a_initiate_chat
Observed Behavior:
The system gets stuck after triggering nested chat but before tool usage. After a timeout period returns with the error message:
in the line in ConversableAgent
_, func_return = loop.run_until_complete(self.a_execute_function(function_call))
Temporary work around:
Model Used
gpt-4-turbo-preview
Expected Behavior
Async function calling works even in nested chat
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: