Assistant is thrown into infinite loop if assistant.tool_choice = "function_name" is selected and autorun. #825
Labels
assistants
Related to Langchain::Assistant class
bug
Something isn't working
thoughtbot-open-summit-2024
https://thoughtbot.com/events/open-summit
Describe the bug
The Assistant is thrown into an infinite loop when LLM is forced to pick the same tool on every request. Since we auto-run the tool calls and then call the LLM again -- it's thrown into an infinite loop.
To Reproduce
Observe the Assistant thrown into an infinite loop because:
Expected behavior
The openai/swarm framework allows setting max_turns: which (I believe?) stops this from happening. We may consider something similar.
The text was updated successfully, but these errors were encountered: