Back to Browse

Google ADK Artifacts Explained | Save, Version, and Reuse Agent Files

121 views
Mar 11, 2026
19:52

In this hands-on demo, we learn how to use Artifacts in Google ADK so agents can persist, version, and reuse file-like outputs beyond normal conversational state. We start by understanding what Artifacts are and why they matter, especially when your agent needs to work with larger or binary payloads instead of just lightweight session state. Then we build and demo an Artifact Notebook Agent that can save notes as artifacts, load them later, list available artifacts, and create new versions automatically when the same file is updated. We also look at session-scoped vs user-scoped artifacts and discuss when each one makes sense. πŸ“˜ What we covered β€’ What Artifacts are in Google ADK β€’ Why Artifacts are needed beyond session state β€’ How Artifacts are represented using google.genai.types.Part β€’ Save artifacts with save_artifact(...) β€’ Load latest or specific versions with load_artifact(...) β€’ Discover saved files with list_artifacts() β€’ Understand automatic versioning for the same filename β€’ Learn session scope vs user scope with namespaced keys β€’ Build and demo an Artifact Notebook Agent in ADK Web UI πŸ‘‡ Chapters 00:00 - Intro 00:50 - Artifacts vs session state 02:05 - Artifact anatomy 02:38 - Real world Scenarios 03:37 - Artifact service architecture 04:32 - Automatic versioning 05:40 - Session scope vs user scope 06:40 - Interaction with Artifacts Service 07:41 - Backend services 08:33 - Building the Artifact Notebook Agent 13:55 - Demo in ADK Web UI 19:12 - Wrap-up πŸ“‚ Resources β€’ Reference code: ADK Artifacts tutorial code β†’ https://github.com/ai-suyash/genai-youtube/tree/main/tutorials/google-adk/12_adk_artifacts πŸŽ₯ Previous videos β†’ Video 1: Build Your First AI Agent with Google ADK β†’ https://youtu.be/NU05aTvRiJM β†’ Video 2: Function Tools in Google ADK (Finance Assistant) β†’ https://youtu.be/NnQsX5FiOak β†’ Video 3: OpenAPI Tools in Google ADK (Chuck Norris API) β†’ https://youtu.be/q3jm48R0Brw β†’ Video 4: Sequential Agents in Google ADK (Podcast Transcript Assistant) β†’ https://youtu.be/WfZSHQrD14Y β†’ Video 5: Parallel Agents in Google ADK (Multi-Agent Travel Planner) β†’ https://youtu.be/czNGyHkKdew β†’ Video 6: Loop Agents in Google ADK β†’ https://youtu.be/QGcVTjeQYXA β†’ Video 7: Callbacks in Google ADK β†’ https://youtu.be/NANNKCiLz0I β†’ Video 8: How Google ADK Agents Run β†’ https://youtu.be/dSQqCWK18dQ β†’ Video 9: Events in Google ADK β†’ https://youtu.be/kGFvc7E6KV8 β†’ Video 10: Context Management in Google ADK β†’ https://youtu.be/UncyNladiX0 β†’ Video 11: Evaluating AI Agents in Google ADK | High-Level Overview β†’ https://youtu.be/RRX30ddwpDw β†’ Video 12: Evaluating AI Agents in Google ADK | Hands-On Demo β†’ https://youtu.be/kJfzjQyshbA πŸ“Ί Playlists β†’ Building AI Agent with Google ADK Playlist β†’ https://www.youtube.com/playlist?list=PL2OwQjtoKA1F4m0__4e8gh_X0YZqRpm9Z β†’ Function calling Playlist β†’ https://www.youtube.com/playlist?list=PL2OwQjtoKA1G5lcXPNodN390dn7gZWonm #adk #googleadk #aiagents #genai #llm #artifacts #aideveloper

Download

0 formats

No download links available.

Google ADK Artifacts Explained | Save, Version, and Reuse Agent Files | NatokHD