The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs: fix typing in how_to/custom_tools.ipynb (#31164)
Victor Hiairrassaryefc52e18e98e
diff --git a/docs/docs/how_to/custom_tools.ipynb b/docs/docs/how_to/custom_tools.ipynbindex 81853e17a0..d16e985974 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",