I am creating a agentic application using mastra which has 2 agents
I want agent one to connect to agent 2
I am doing it by calling a tool in agent one that is calling agent 2
Agent one has memory
Agent two has its own memory
Let's say while talking to agent one..agent one calls tool and tool require input as candidate id
And now this conversation goes on the second or third question I ask it require tool call again, so it asks candidate id again as tool can not be called without id and at agent two there is no context of previous conversation
How the conversation could be maintained between 2 agents?