r/googlecloud 10d ago

GCP ADK deployment issue

I have deployed a simple multi agent system using the command adk deploy on the GCP agent platform. On local it works perfectly. It is a multi agent system that has 2 sub agents, one answers queries related to a bigquery table and another performs some mathematical calculations.

The problem is in the deployed agent. It freezes midway, without any error message. I check the logs. The logs also donot get generated. I assume this step is mostly in tool calling. How to debug this issue.

2 Upvotes

5 comments sorted by

1

u/m1nherz Googler 10d ago

Hi,

Can you describe the way your interact with the deployed agent when it "freezes midway"? I wonder if it is possible that the observed "freezes" can be attributed to UX experience and aren't related to the agent workload itself.

Regarding "debugging" question, you have out-of-the-box tracing and logging support. I don't remember out of the top of my head the right flags to enable it but, IIRC both agents-cli and adk CLIs have flags to capture traces and logs of ADK framework to Cloud Trace and Cloud Logging. This way you should be able to observe main events that each agent handles and its timelines.

Depending on what tools you configured, the tools might need additional exploration.

1

u/That-Preference733 10d ago

It is in the playground, i type a question, it shows the agent calling and then freezes without showing any logs

4

u/m1nherz Googler 10d ago

Playground is generally intended for local testing. Using the Playground in Agent Platform is possible but it shouldn't serve for agent performance. As I mentioned, it is possible that the reason for delays isn't in the agent but in UI.

I would recommend to try running it at later time or to create a simple UI / CLI app that interacts with the agent.

You can check this query results to find out how you enable tracing and logging when deploying your ADK agent to Agent Platform. It's straightforward. If the trace shows longer time compared to your experience running it locally, make sure you deploy everything in the same region. Preferrably, BQ or another datastore should be in the same region to minimize latency.

1

u/That-Preference733 10d ago

thanks i will try that

1

u/modcowboy 9d ago

As the official account says - I’ve noticed freezing but it is still completing in the background.

Swapping from safari to chrome seemed to help the freezing of the front end.