mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-13 06:40:04 +00:00
docs: fix typing in how_to/custom_tools.ipynb (#31164)
Fix typing in how_to/custom_tools.ipynb
This commit is contained in:
parent
2d202f9762
commit
efc52e18e9
@ -530,7 +530,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
" def _run(\n",
|
" def _run(\n",
|
||||||
" self, a: int, b: int, run_manager: Optional[CallbackManagerForToolRun] = None\n",
|
" self, a: int, b: int, run_manager: Optional[CallbackManagerForToolRun] = None\n",
|
||||||
" ) -> str:\n",
|
" ) -> int:\n",
|
||||||
" \"\"\"Use the tool.\"\"\"\n",
|
" \"\"\"Use the tool.\"\"\"\n",
|
||||||
" return a * b\n",
|
" return a * b\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -539,7 +539,7 @@
|
|||||||
" a: int,\n",
|
" a: int,\n",
|
||||||
" b: int,\n",
|
" b: int,\n",
|
||||||
" run_manager: Optional[AsyncCallbackManagerForToolRun] = None,\n",
|
" run_manager: Optional[AsyncCallbackManagerForToolRun] = None,\n",
|
||||||
" ) -> str:\n",
|
" ) -> int:\n",
|
||||||
" \"\"\"Use the tool asynchronously.\"\"\"\n",
|
" \"\"\"Use the tool asynchronously.\"\"\"\n",
|
||||||
" # If the calculation is cheap, you can just delegate to the sync implementation\n",
|
" # If the calculation is cheap, you can just delegate to the sync implementation\n",
|
||||||
" # as shown below.\n",
|
" # as shown below.\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user