From dea43436ea501d3fadeddc7f75d34b31eb4f8254 Mon Sep 17 00:00:00 2001 From: Mrityunjay Jha <56424165+mrityu-jha@users.noreply.github.com> Date: Thu, 5 Jun 2025 21:10:52 +0530 Subject: [PATCH] docs: updated incorrect datatype for custom tool notebook (#31498) - **Description:** `"string"` is given as the `"type"` for a custom tool argument, even though it is an `integer`. This can be validated from the Colab notebook output. - **Issue:** N/A - **Dependencies:** N/A - **Twitter handle:** [mrityu___](https://x.com/mrityu___) Current: ![image](https://github.com/user-attachments/assets/403c04c5-ba35-4845-a8ce-9e9c584a57b8) After Change: ![image](https://github.com/user-attachments/assets/c0af90c4-2039-4b92-9be3-7b77d08bae3d) Colab Output: ![image](https://github.com/user-attachments/assets/9495c574-21bf-475d-8ede-a14cb2576ffa) --- docs/docs/how_to/custom_tools.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/how_to/custom_tools.ipynb b/docs/docs/how_to/custom_tools.ipynb index d16e9859746..f0e4126cb0f 100644 --- a/docs/docs/how_to/custom_tools.ipynb +++ b/docs/docs/how_to/custom_tools.ipynb @@ -141,7 +141,7 @@ "{'description': 'Multiply a by the maximum of b.',\n", " 'properties': {'a': {'description': 'scale factor',\n", " 'title': 'A',\n", - " 'type': 'string'},\n", + " 'type': 'integer'},\n", " 'b': {'description': 'list of ints over which to take maximum',\n", " 'items': {'type': 'integer'},\n", " 'title': 'B',\n",