You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Hello World code sample provided in the README.md file of the repository does not properly await the asynchronous agent.run() method. This results in a RuntimeWarning and improper execution of the sample code.
<coroutine object BaseChatAgent.run at 0x75adf0cbb2e0>
/home/ranuga/Jobs/Altrium/Altrium-PD/Learning/AutoGen/basic.py:7: RuntimeWarning: coroutine 'BaseChatAgent.run' was never awaited
print(agent.run(task="Say 'Hello World!'"))
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
What did you expect to happen?
The code sample should execute correctly without raising a warning, and it should print the result of the task Say 'Hello World!'.
How can we reproduce it (as minimally and precisely as possible)?
Clone the repository and follow the setup instructions in the README.md.
Copy the Hello World code sample from the README.md.
Run the code without modifying it.
AutoGen version
0.4.0
Which package was this bug in
Core
Model used
gpt-4o
Python version
3.11.7
Operating system
Ubuntu 24.04
Any additional info you think would be helpful for fixing this bug
No response
The text was updated successfully, but these errors were encountered:
What happened?
The Hello World code sample provided in the README.md file of the repository does not properly await the asynchronous agent.run() method. This results in a RuntimeWarning and improper execution of the sample code.
What did you expect to happen?
The code sample should execute correctly without raising a warning, and it should print the result of the task Say 'Hello World!'.
How can we reproduce it (as minimally and precisely as possible)?
AutoGen version
0.4.0
Which package was this bug in
Core
Model used
gpt-4o
Python version
3.11.7
Operating system
Ubuntu 24.04
Any additional info you think would be helpful for fixing this bug
No response
The text was updated successfully, but these errors were encountered: