Activity
Mon
Wed
Fri
Sun
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
What is this?
Less
More

Memberships

AI Developer Accelerator

10.8k members • Free

1 contribution to AI Developer Accelerator
Issues Getting Google ADK InMemoryArtifactService to Recognize Files
Hi everyone, I’ve been integrating the Google Agent Development Kit (ADK) into my project to enable a sub‐agent (EDA_agent) to perform exploratory data analysis on user‐uploaded CSV files. Despite following the documentation and multiple troubleshooting steps, I still cannot get the artifact service to register any uploaded files My main.py defines a Runner with both InMemorySessionService and InMemoryArtifactService (i.e., I explicitly set artifact_service = InMemoryArtifactService() to support handling files) and assigned it to the runner together with InMemorySessionService. Agent Logic - research_agent greets the user and, upon upload, delegates to EDA_agent upon receiving a file. - EDA_agent calls two tools via ToolContext: (1) : list_files() to enumerate artifact filenames and (2) read_file(filename) to load a named CSV and compute descriptive statistics. Despite creating main.py with artifact_service = InMemoryArtifactService(), the tool list_files() always returns an empty list, and consequently read_file("whatever.csv") fails to fetch the file. I suspect that when I run adk web, it is not actually connecting to the runner I defined in main.py In particular. Also, the State panel in the UI client also remains empty (does not show my initial state keys). Any help would be highly appreciated! Thanks, Elad
1-1 of 1
Elad Weinstein
1
4points to level up
@elad-weinstein-1471
Data Analyst

Active 66d ago
Joined Jun 1, 2025
Powered by