Run 2 agent

any one has idea about how to run 2 agent

i used below formula

@command([toolsrunmacro];“agent1”)

@Postedcommand([toolsrunmacro];“agent2”)

i want to run the agent2 onl;y after agent1 run successfully, i cant execute the agent2 in agent1 itself due to some reason.

Subject: Call an agent from inside an agent

Try calling agent2 at the end of agent1. See if that works