Autogen 0.7 - Getting the caller agent name while processing task
00:52 10 Dec 2025

Working on a graphflow with 5 nodes and edges with condition.

One of my node is classifier. If the Classifier agent is not able to classify the incoming task into known buckets or if the confidence for classification is low, I have to call the Archiving agent. At the end of the successful classification flow also, I need to call the Archiving agent to do the house keeping. I have to identify through which edge the Archiving agent is activated. So that I can utilize this information in the tool call made by the Archiving agent to create appropriate files.

In the system message of the Archiving agent I mentioned the following information. Pass on the caller agent name as an argument while calling the tool Its passes the random agent name in the graph as parameter. How to overcome this issue?

ms-autogen