Find answers from the community

Updated last month

The Perils of Infinite Loops in a Multi-Agent System

At a glance

The community member has a setup using the multi concierge demo that should be able to add and multiply numbers using separate agents. However, when the user tries to multiply the last answer by 2, the system goes into a never-ending loop of transferring to the agent, with the agent continuously requesting a transfer. The community member is concerned that this type of issue could cause the system to crash as it becomes more complex. Another community member suggests adding debug logs to the workflow and checking the chat history at each language model call to investigate the issue further.

I have a pretty simple setup using the multi concierge demo that should be able to add and multiple numbers (using separate agents). However, if I start a connection and say "Multiply the last answer by 2", the system goes into a never ending loop of transfer to agent, agent requests transfer forever. Any ideas? I don't want this type of occurrence to randomly crash the system once it gets more complex.
L
1 comment
Your going to have to add debug logs in the workflow. I would be checking what the chat history looks like at each llm call and going from there
Add a reply
Sign up and join the conversation on Discord