Skip to content

Is there a way to get a return value from user_proxy.initiate_chat() in the Autogen library? #104

Answered by RoyalFlush31
crisadasmeq asked this question in Q&A
Discussion options

You must be logged in to vote

You can retrieve the chat like this:

conversation = {}

autogen.ChatCompletion.start_logging(history_dict=conversation)

user_agent.initiate_chat(
ManagerAgent(),
message=query
)

autogen.ChatCompletion.stop_logging()

print(conversation)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@sonichi
Comment options

Answer selected by qingyun-wu
Comment options

You must be logged in to vote
1 reply
@colaso96
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants