Skip to content
Discussion options

You must be logged in to vote

Response from ADK Answering Agent (experimental, answer may be inaccurate)

TLDR: You can use the ReflectAndRetryToolPlugin to automatically handle 503 errors and other tool failures by retrying the request.


Hello! Thanks for reporting this issue. You've pointed out a critical aspect of building robust conversational agents: handling transient errors gracefully.

The ADK provides a built-in plugin specifically for this scenario called the ReflectAndRetryToolPlugin. This plugin intercepts tool execution failures, such as the "503 Context deadline exceeded" error you encountered, and can automatically retry the operation. This prevents the agent from crashing and allows it to recover from te…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hangfei
Comment options

Answer selected by hangfei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
core [Component] This issue is related to the core interface and implementation
3 participants
Converted from issue

This discussion was converted from issue #2790 on November 09, 2025 22:26.