mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
Fix all the bug in init Tool in docs (#1725)
Fix all the example in the docs when init `Tool` Test by render with jupyter
This commit is contained in:
parent
5d8dc83ede
commit
8a95fdaee1
@ -34,7 +34,8 @@ search = GoogleSerperAPIWrapper()
|
|||||||
tools = [
|
tools = [
|
||||||
Tool(
|
Tool(
|
||||||
name="Intermediate Answer",
|
name="Intermediate Answer",
|
||||||
func=search.run
|
func=search.run,
|
||||||
|
description="useful for when you need to ask with search"
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -61,7 +61,8 @@
|
|||||||
"tools = [\n",
|
"tools = [\n",
|
||||||
" Tool(\n",
|
" Tool(\n",
|
||||||
" name=\"Intermediate Answer\",\n",
|
" name=\"Intermediate Answer\",\n",
|
||||||
" func=search.run\n",
|
" func=search.run,\n",
|
||||||
|
" description=\"useful for when you need to ask with search\"\n",
|
||||||
" )\n",
|
" )\n",
|
||||||
"]\n",
|
"]\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -24,11 +24,13 @@
|
|||||||
"tools = [\n",
|
"tools = [\n",
|
||||||
" Tool(\n",
|
" Tool(\n",
|
||||||
" name=\"Search\",\n",
|
" name=\"Search\",\n",
|
||||||
" func=docstore.search\n",
|
" func=docstore.search,\n",
|
||||||
|
" description=\"useful for when you need to ask with search\"\n",
|
||||||
" ),\n",
|
" ),\n",
|
||||||
" Tool(\n",
|
" Tool(\n",
|
||||||
" name=\"Lookup\",\n",
|
" name=\"Lookup\",\n",
|
||||||
" func=docstore.lookup\n",
|
" func=docstore.lookup,\n",
|
||||||
|
" description=\"useful for when you need to ask with lookup\"\n",
|
||||||
" )\n",
|
" )\n",
|
||||||
"]\n",
|
"]\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -52,7 +52,8 @@
|
|||||||
"tools = [\n",
|
"tools = [\n",
|
||||||
" Tool(\n",
|
" Tool(\n",
|
||||||
" name=\"Intermediate Answer\",\n",
|
" name=\"Intermediate Answer\",\n",
|
||||||
" func=search.run\n",
|
" func=search.run,\n",
|
||||||
|
" description=\"useful for when you need to ask with search\"\n",
|
||||||
" )\n",
|
" )\n",
|
||||||
"]\n",
|
"]\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -121,7 +121,8 @@
|
|||||||
"tools = [\n",
|
"tools = [\n",
|
||||||
" Tool(\n",
|
" Tool(\n",
|
||||||
" name=\"Intermediate Answer\",\n",
|
" name=\"Intermediate Answer\",\n",
|
||||||
" func=search.run\n",
|
" func=search.run,\n",
|
||||||
|
" description=\"useful for when you need to ask with search\"\n",
|
||||||
" )\n",
|
" )\n",
|
||||||
"]\n",
|
"]\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user