microsoft / teams-ai

SDK focused on building AI based applications and extensions for Microsoft Teams and other Bot Framework channels
MIT License
403 stars 176 forks source link

[Bug]: Actions via Assistant Planner Cannot Be Stopped #1716

Closed lifan0127 closed 3 months ago

lifan0127 commented 3 months ago

Language

Javascript/Typescript, Python

Version

latest

Description

When an action triggered by the AssistantPlanner is stopped by a action handler (by returning "STOP"), the bot no longer responds to new messages. I believe this is because the Assistant thread is left in the blocking "required_action" status. This introduces flow design constraints in comparison to the ActionPlanner.

Reproduction Steps

1. Create an assistant and add a function as tool
2. Create a `teams-ai` project using the assistant
3. In the project, add an action handler which returns "STOP"
4. Trigger the action and then the bot will no longer respond to new messages