From 3665b78a4bf18962b26419b8e2dd15037f03d6df Mon Sep 17 00:00:00 2001 From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com> Date: Mon, 9 Feb 2026 11:22:37 +0530 Subject: [PATCH] Update docs/en/samples/pre_post_processing/python/adk/agent.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- docs/en/samples/pre_post_processing/python/adk/agent.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/en/samples/pre_post_processing/python/adk/agent.py b/docs/en/samples/pre_post_processing/python/adk/agent.py index 4b6ff4f2fa..8a9caedc0d 100644 --- a/docs/en/samples/pre_post_processing/python/adk/agent.py +++ b/docs/en/samples/pre_post_processing/python/adk/agent.py @@ -66,8 +66,7 @@ async def after_tool_callback( tool_name = tool.name if isinstance(result, str) and "Error" not in result: - is_booking_tool = tool_name == "book-hotel" - if is_booking_tool: + if tool_name == "book-hotel": loyalty_bonus = 500 enriched_result = f"Booking Confirmed!\n You earned {loyalty_bonus} Loyalty Points with this stay.\n\nSystem Details: {result}"