Skip to content

How can I define an agent using autogen_core and obtain streaming responses when sending messages to it at runtime? #6129

Answered by ToryPan
ToryPan asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for your reply. Based on your suggestion, I created an asynchronous global queue using asyncio.Queue to fetch real-time messages from the agent, and it's working. I have also created an example and have opened a pull request to add it to the examples section: (Add an example using autogen-core and FastAPI to create streaming responses by ToryPan · Pull Request #6335 · microsoft/autogen). I hope this example will be helpful to others.

Best regards,

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ToryPan
Comment options

Comment options

You must be logged in to vote
2 replies
@ekzhu
Comment options

@ToryPan
Comment options

Answer selected by ToryPan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants