Skip to content
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

Streaming messages from a run #3969

Closed
ekzhu opened this issue Oct 26, 2024 · 0 comments · Fixed by #4015 · May be fixed by Promptless/autogen-test#12
Closed

Streaming messages from a run #3969

ekzhu opened this issue Oct 26, 2024 · 0 comments · Fixed by #4015 · May be fixed by Promptless/autogen-test#12
Labels
Milestone

Comments

@ekzhu
Copy link
Collaborator

ekzhu commented Oct 26, 2024

What feature would you like to be added?

Would be a simple way to integrate with UIs to show progress while executing a task, without getting into logging. 

team = Swarm([agent1, agent2])
stream = await team.run_stream("What is bob's birthday?", termination_condition=MaxMessageTermination(3))
async for message in stream:
    print(message)

Why is this needed?

Logging is too complicated for a quick start. Stream iterator is much more user friendly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant