Is there a way to get a return value from user_proxy.initiate_chat() in the Autogen library? #104
-
I'm working with the Autogen library to initiate chat sessions and perform various tasks like stock price retrieval. I followed an example found in the project's README to set up the AssistantAgent and UserProxyAgent. However, after executing user_proxy.initiate_chat(), I noticed that the response variable remains empty. The logging only shows what's happening in real-time execution but does not yield a return value that can be stored in a variable for later use. Here's the example code snippet from the README:
How can I obtain a return value from user_proxy.initiate_chat() that can be stored in a variable? Is this feature currently not supported, or is there a plan to include this in future releases? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can retrieve the chat like this:
|
Beta Was this translation helpful? Give feedback.
-
logging via Completion.start_logging is deprecated in pyautogen v0.2. logging via OpenAIWrapper will be added back in a future release. |
Beta Was this translation helpful? Give feedback.
You can retrieve the chat like this: