Regarding sharing sessions between Agents

Dear Team,

I am creating one agent where I provide it with memory, storage, userid, sessionid.

Now I can see in my database that I have a session stored with userid and sessionid.

When I give same things to a new agent as before and ask, can you let me know what we did before? The new agent cannot answer it. I gave same memory, storage, userid, sessionid. Is it essential to also add these params? add_history_to_messages=True, num_history_runs=3. My idea is first agent creates something and the next agent answers based on session memory of this earlier agent so it should know what the earlier one did. My first agent creates multiple files across its run.

Please let me know, if I am understanding or doing something wrong.

Thanks in advance.

Hi @aashayk7, thanks for reaching out and supporting Agno. I’ve shared this with the team, we’re working through all requests one by one and will get back to you soon.If it’s urgent, please let us know. We appreciate your patience!

Hey @aashayk7 , you would need to pass session_id and user_id to the run() of all the agents you need to share the session