Replies: 2 comments
-
The API is now "stable" so we can't change it for v0.4.*. However, Instead of changing One pattern I have seen is an event handler class, such as the OpenAI Assistant's EventHandler class. |
Beta Was this translation helpful? Give feedback.
-
Maybe just two new methods |
Beta Was this translation helpful? Give feedback.
-
What feature would you like to be added?
I think
run_stream
inBaseGroupChat
is a little bit awkward to use, because it streams both messages and the task result in the end. This leads to code like this for example:So you basically have to check the types of the messages, find the task result in the message and such stuff. This is partially also an issue with Python, because typings do not allow to specify that TaskResult will always be the last message.
I wonder if it would be better to separate concerns here and have one method for the actual messages and one method for the task result or something like this?
Why is this needed?
Make code easier to use.
Beta Was this translation helpful? Give feedback.
All reactions