From 68de9adc18c13ab45fab9049c0eb539c35f7e23b Mon Sep 17 00:00:00 2001 From: sudu Date: Thu, 22 May 2025 21:55:43 -0700 Subject: [PATCH] Copybara import of the project: -- 004eb36c16b042ba2d8be0cca39b739c0c8ca6c1 by sudu : Update tools.yaml When search hotels with some LLM, the date format shows as bellow ``` **Check-in Date:** April 23, 2024 ``` So i update the SQL in tools.yaml to be compatible with following instruction: ```sql update checkin date to 'April 24,2024' and checkout date to 'April 26,2024' of Best Western Bern ``` -- 1300688ee1407212658d57712c1ad6ee61b052fe by qidu : Fix the tools of `ToolboxToolset` initialization bugs for `samples/toolbox_agent` COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/794 from qidu:main 5b3199da564efdd07915e24e75659055a17dad82 PiperOrigin-RevId: 762259287 --- contributing/samples/toolbox_agent/tools.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contributing/samples/toolbox_agent/tools.yaml b/contributing/samples/toolbox_agent/tools.yaml index d905035..692a758 100644 --- a/contributing/samples/toolbox_agent/tools.yaml +++ b/contributing/samples/toolbox_agent/tools.yaml @@ -61,8 +61,8 @@ tools: type: string description: The new check-out date of the hotel. statement: >- - UPDATE hotels SET checkin_date = CAST($2 as date), checkout_date = CAST($3 - as date) WHERE id = $1; + UPDATE hotels SET checkin_date = strftime('%Y-%m-%d', replace($2, ',', '')), checkout_date = strftime('%Y-%m-%d', replace($3 + ',', '')) WHERE id = $1; cancel-hotel: kind: sqlite-sql source: my-sqlite-db