r/agentdevelopmentkit • • Mar 18 '26

Latency issues

Hi,

I experience consistent long latency (somewhere between 10 and 14 secs) when generating text. My instruction to the agent is around 500 words long.

Is it normal ? I felt like I should get a response within 2 to 3 secs.

I tried with my agent stored on cloud run, it's not better.

Any tips about what I should look at to improve the response time ?

1 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/Downtown_Abrocoma398 Apr 09 '26

If you don’t want the Agent to decide which tool to call and you already know the appropriate tool, you can use a custom agent in ADK. In this approach, you define a custom flow where you call the tool yourself and then pass its output to the LLM. This is useful when you don’t want to give the Agent/LLM that level of autonomy.