Skip to content

Commit 68de9ad

Browse files
qiducopybara-github
authored andcommitted
Copybara import of the project:
-- 004eb36 by sudu <teric@outlook.com>: 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 ``` -- 1300688 by qidu <qidu@outlook.com>: Fix the tools of `ToolboxToolset` initialization bugs for `samples/toolbox_agent` COPYBARA_INTEGRATE_REVIEW=#794 from qidu:main 5b3199d PiperOrigin-RevId: 762259287
1 parent 0026edc commit 68de9ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contributing/samples/toolbox_agent/tools.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ tools:
6161
type: string
6262
description: The new check-out date of the hotel.
6363
statement: >-
64-
UPDATE hotels SET checkin_date = CAST($2 as date), checkout_date = CAST($3
65-
as date) WHERE id = $1;
64+
UPDATE hotels SET checkin_date = strftime('%Y-%m-%d', replace($2, ',', '')), checkout_date = strftime('%Y-%m-%d', replace($3
65+
',', '')) WHERE id = $1;
6666
cancel-hotel:
6767
kind: sqlite-sql
6868
source: my-sqlite-db

0 commit comments

Comments
 (0)