-
Notifications
You must be signed in to change notification settings - Fork 7.8k
AgentChat streaming API #4015
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
AgentChat streaming API #4015
Conversation
|
Why is there an error in the execution result of Alice? |
This is a separate bug with auto generated handoff functions. The result is actually not used so it does not affect the task. Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Tested a few times, I'm not sure how I feel about the last message being TaskResult while everything else is consistent as message with source & content fields. Maybe if there is a way to have stream.messages and stream.task_result possibly? this is not necessary and just an optional thing completely
Python current doesn't support returning from async generator. A hack is to return value through exception. https://discuss.python.org/t/allow-return-statements-with-values-in-asynchronous-generators/66886/2 Our client also uses this design to stream completion parts followed by the complete message. https://microsoft.github.io/autogen/dev/user-guide/core-user-guide/framework/model-clients.html#streaming-response |
Resolves #3969
Would be a simple way to integrate with UIs to show progress while executing a task, without getting into logging.