adk-samples icon indicating copy to clipboard operation
adk-samples copied to clipboard

data-science agent failed with TypeError: 'async for' requires an object with __aiter__ method, got coroutine

Open nostalgicimp opened this issue 1 year ago • 2 comments

Running the data-science agent sample, it runs into an error that breaks the process. Anyones knows is this a known issue? how to solve it to run data-science agent?

src/google/adk/tools/agent_tool.py", line 149, in run_async async for artifact_name in runner.artifact_service.list_artifact_keys( TypeError: 'async for' requires an object with aiter method, got coroutine 2025-05-08 11:03:25,582 - ERROR - init.py:157 - Failed to detach context

Image

nostalgicimp avatar May 08 '25 18:05 nostalgicimp

Hi @nostalgicimp - sorry for the delay. Can you clarify if you are facing the issues still with the latest ADK version?

5Y5TEM avatar Jun 09 '25 15:06 5Y5TEM

This was likely an issue with the ADK migration to async API calls. Please re-open if this is still occurring.

mstyer-google avatar Jul 29 '25 15:07 mstyer-google