From efc52e18e98ea55d9e98b59ca9b4bedf2510bdc9 Mon Sep 17 00:00:00 2001 From: Victor Hiairrassary Date: Thu, 8 May 2025 18:51:42 +0100 Subject: [PATCH] docs: fix typing in how_to/custom_tools.ipynb (#31164) Fix typing in how_to/custom_tools.ipynb --- docs/docs/how_to/custom_tools.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/how_to/custom_tools.ipynb b/docs/docs/how_to/custom_tools.ipynb index 81853e17a0d..d16e9859746 100644 --- a/docs/docs/how_to/custom_tools.ipynb +++ b/docs/docs/how_to/custom_tools.ipynb @@ -530,7 +530,7 @@ "\n", " def _run(\n", " self, a: int, b: int, run_manager: Optional[CallbackManagerForToolRun] = None\n", - " ) -> str:\n", + " ) -> int:\n", " \"\"\"Use the tool.\"\"\"\n", " return a * b\n", "\n", @@ -539,7 +539,7 @@ " a: int,\n", " b: int,\n", " run_manager: Optional[AsyncCallbackManagerForToolRun] = None,\n", - " ) -> str:\n", + " ) -> int:\n", " \"\"\"Use the tool asynchronously.\"\"\"\n", " # If the calculation is cheap, you can just delegate to the sync implementation\n", " # as shown below.\n",