Team and Agent Session Loading

I am working on a streamlit application where there is one agent with a fixed knowledge base. There is a second agent who gets a document from the user and does an embedding. These two agents form a team and answer users questions. For example user may want the agents to check the uploaded document against the static knowledge base of the first agent. So as you can see the second agent has a dynamic knowledge base unlike the first agent.

Now the code has been working when I test just as a python code. But I want to create a chatbot like the Agentic Rag streamlit example with session management. In that scenario - if I load the team based on session ID - does that mean the agents have the same session ID? How should I make sure that the when loading a team by session - the appropriate sessions for the agents get loaded? I do not think currently I can assign the session Id explicitly while creating the agent.

Any guidance / suggestions will be appreciated.

Hey @sssaha1989, 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 @sssaha1989 You can set session_id explicitly to the configuration of teams and agents. Does that help?