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>
This commit is contained in:
Twisha Bansal
2026-02-09 11:22:37 +05:30
committed by GitHub
parent d7d5e75324
commit 3665b78a4b

View File

@@ -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}"