In today’s video, we’ll experiment session and state in Google ADK. So we can imagine that session is kinda a new chat in ChatGPT, every time we create a new chat, technically, we create a new user session. With a new session, everything is refreshed, our conversation in the old session will not be available.
Github: https://github.com/nlinhvu/google-adk-java-demo-2025/tree/main/05.Session-State
ADK for Java Experiments: https://www.youtube.com/playlist?list=PLLMxXO6kMiNhP87WYQ8CeC3xpV3EnF9cu
References:
ADK Session: https://google.github.io/adk-docs/sessions/session/
ADK State: https://google.github.io/adk-docs/sessions/state/
Agent-as-a-Tool: https://google.github.io/adk-docs/tools/function-tools/#agent-tool
Anatomy of a Session: https://cloud.google.com/blog/topics/developers-practitioners/remember-this-agent-state-and-memory-with-adk
(00:00): Introduction
(01:17): Agent as a Tool
(03:37): ToolContext
(05:09): Use State in the Agent's Instruction
(06:54): Test with ADK Web Server
#adk #java #agent