What feature would you like to be added?
Currently AutoGen 0.4x provides a cancellation token for cancelling/stopping workflows.
We need to make sure the cancellation token is used within the run and run_stream functions, and propagated through the agent calls within.
We also need clear examples (probably in tutorial) on
- how to cancel a workflow using the token . E..g. a team that has 10 steps with delays. And cancellation token set after say 5 seconds.
- how to catch exceptions gracefully and use that in an app
- Some examples around best practices ... e.g., encouraging users to respect the cancellation token especially if they have long running steps
Why is this needed?
Many apps will need a way to stop