I have a simple AI Agent with a tool (lets say Calculator, but can be reproduced with many other), AI Agent prompt has something like “Calculate expression if needed, if not output the value” and input has two separate items “12” and “10 + 8”, so first should not be calculated and should take just one call, second should be calculated and take 2 calls to model, but somehow there is 4 total calls to model and 1 call to Calculator… Basically first item gets executed twice for some reason without even calling the tool and pretty much with the same input. Can someone explain why this happening?
1 Like
Hi @rohit32500, welcome!
Yes, this does seem strange!
To confirm, I tested it with the AI Agent node version 2 and got 3 calls as expected,
So I think the behavior of the AI Agent node v3 is different here!
What’s surprising is that this duplication in v3 only happens when the AI Agent receives more than one item as input, If we provide just a single item, it works as expected..
Probably a bug, idk..
v2:
v3:
1 Like


