-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dealing with output from assistant agent #165
Comments
There is no such fine-grained printing mechanism yet. However, one workaround is to log all the history and retrieve the conversations that satisfy certain conditions by post-processing the log history. Check code examples about logging as follows: Enable logging: https://github.com/microsoft/autogen/blob/main/test/agentchat/test_assistant_agent.py#L122 Check the logged info: https://github.com/microsoft/autogen/blob/main/test/agentchat/test_assistant_agent.py#L150 Please let me know if this does not address your needs. |
Hi Qingyun-wu The idea was to avoid all the intermedite outputs. So logging and parsing through the entire content gets to become complex. Also I am seeing the agent often does not recognise an existing function and says function does not exist - thought it identifies the right function needed. This is intermittent. Probably to do with some cache issue... not sure.. Also is there an option to flush cache, will be nice to understand what is level of informatin is cached. |
https://microsoft.github.io/autogen/docs/reference/agentchat/conversable_agent#initiate_chat clear cache: https://microsoft.github.io/autogen/docs/reference/oai/completion#clear_cache |
Thank you Sonichi, Will give that a try.. Any sampe code is appreciated.. |
Some of the answers are worth adding to the documentation website. |
Hi Sonichi, I tried the last message option. Given the last interaction is a TERMINATE command to end conversation, the last message printed is TERMINATE. I have just worked around by asking the agent to format the final answer thru prompt as something like {answer} TERMINATE. Then I am trimming TERMINATE word from the final answer.... Is there any other elegant way to do this..? Also have question around memory - what is the default chat history / memory length, any option to control or reset this.. Also if I build an application using Autogen - Is this expected to remain for ever and be supported..? |
The chat history keeps growing in memory until No one can promise forever but look, autogen is known by the public for only 1 month and already has a big vibrant community. It's not going to die anytime soon. |
I still haven't found a way to not get any output from initiate_chat(), but it seems individual messages from the assistants can be returned with |
I am trying to get the last message and for context, have called something like:
This works and I get the full conversation. I'm trying to use the last_message() function, but when I do something like,
It says group_chat_manager was not part of any recent conversations. I tried calling last_message with other agents that was part of the groupchat and I get the same error. Can someone please provide actual use of the function, linking to the documentation is not clear enough. |
silent = True only works for the first message after that it again prints the messages |
That sounds a bug. Help is appreciated! cc @cheng-tan @Hk669 @giorgossideris @krishnashed @WaelKarkoub |
Could you try the new "ChatResult" returned from the chat? https://microsoft.github.io/autogen/docs/tutorial/conversation-patterns#group-chat |
@Neeraj319 would you be able to open up a new issue? And if possible include a minimal example to reproduce it |
Sure @sonichi, let me check it out! |
I have opened an issue: #2402 |
Not sure if this can help, but if you want to completely turn of the output by creating a silent console, something like this
and set it as the default
|
Would be a useful feature if we can set the verbosity level for each agent in a group chat. As you can imagine, some parts of the conversation are not relevant/useful/interesting to the end user, and so we might not want to show it to them. As the conversation gets longer, the amount of stuff shown on a UI also gets longer, so being able to hide them will improve the end-user experience |
several proposed solutions in the issue, and other relevant issues opened. marking won't fix for 0.2 |
generate_reply() will produce the last message |
Hi Team,
Is there a way to hide the transactions between the assistant agent and the user proxy agent and get only the required final output from assistant agent, once the user proxy agent has terminated the transaction..?
I trying to use this to solve complex scenarios involving multi step, but interested only in the final answer. unless a human input is required for a given step.
The text was updated successfully, but these errors were encountered: