Skip to content

[Issue]: I want Autogen to stream out ONLY the last agent's messages. How can I do that? #3099

Closed
@tyler-suard-parker

Description

@tyler-suard-parker

Describe the issue

I have several agents in a group chat. The user proxy agent takes in the user's question, and several research agents query databases. Then, a writer agent uses the information to write an answer to the user's question. I want to stream to the frontend ONLY the output from the writer agent. How can I do that?
Thank you for your time.

Steps to reproduce

Use this notebook:

https://github.com/microsoft/autogen/blob/main/notebook/agentchat_websockets.ipynb

And try to tailor the response so that it streams back only one of the 2 agents' output.

Screenshots and logs

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.2Issues which are related to the pre 0.4 codebaseneeds-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions