Great tutorial! 👍 Do you happen to know how to only retrieve the final answer and not entire chat? I'm looking at interfacing this with a chatbot and only wanted the final answer displayed. I tried several things but was unable to do it.
Thanks. Have you tried to call chat_message() function? In the demo of my video, use user_proxy.chat_messages[manager] to retrieve all the messages in a dictionary, and print the last one by filtering the agent name in dict. (No matter what agent instance you use to call chat_message, the output always includes all the agents, I don't know why.)
Great tutorial! 👍
Do you happen to know how to only retrieve the final answer and not entire chat? I'm looking at interfacing this with a chatbot and only wanted the final answer displayed. I tried several things but was unable to do it.
Thanks. Have you tried to call chat_message() function? In the demo of my video, use user_proxy.chat_messages[manager] to retrieve all the messages in a dictionary, and print the last one by filtering the agent name in dict. (No matter what agent instance you use to call chat_message, the output always includes all the agents, I don't know why.)
hey can i talk with you, i want to learn to program these bots plus i love your content
Thank you, you can have a close talk with me via X or Discord. The links are in the description of the video.