I am using Google’s ADK (python) to build a multi-agent system. Before diving into the mlti-agent aspects: how do I get hold if the user ID that the session already contains?
The only workaround I found was to put it into the ‘state’ when creating a new session, but it is frustrating that the user id already exists in the session, yet it is not accessible.
I need to be able to call APIs (via tools) knowing what user is interacting with the system.
Hey @Sebastian-PHL ,
Welcome to Forum!
good question! Right now, the ADK doesn’t expose the user ID directly from the session object, which can be limiting. Your workaround of storing it in the session state is the most reliable method for now. Hopefully future updates will make user context easier to access natively.
Thanks!
1 Like