Skip to content

Agent does not return a response when query takes too long #2728

@leebaro

Description

@leebaro

Hello.

I used the data science agent from the following adk-sample to query data from a database:
https://github.com/google/adk-samples/tree/main/python/agents/data-science

From my observation, when I send a query that takes a long time to process, the agent starts running but does not provide any answer.

Instead of asking the same question again, when I simply request “Please give me the answer,” the agent responds without querying the database.

In summary, it seems that when the query takes too long, the agent ends its turn without returning an answer.

How can I resolve this issue when it happens?

Would using LongRunningFunctionTool help? If so, an example would be very helpful.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    question[Component] This issue is asking a question or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions