I have an agent that was getting too many response possibilities, so I wanted to turn some nodes into globals to help with organization/management. In this agent, it's crucial to use a function, and it seems there's an issue with functions, especially when related to a global node, which causes the agent to enter loops (both in the node before the function and after). Could you take a look and let me know if there's any way to avoid this?
Reading other comments here on Discord, I tried placing a node between the global node and the function, but this behavior persisted. Turning the function into a global node didn't work either, these scenarios still resulted in a loop.