The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Fix all the bug in init Tool in docs (#1725)
libra8a95fdaee18b
diff --git a/docs/ecosystem/google_serper.md b/docs/ecosystem/google_serper.mdindex cb175b771d..57d0d0da8b 100644--- a/docs/ecosystem/google_serper.md+++ b/docs/ecosystem/google_serper.md@@ -34,7 +34,8 @@ search = GoogleSerperAPIWrapper()tools = [Tool(name="Intermediate Answer",- func=search.run+ func=search.run,+ description="useful for when you need to ask with search")]diff --git a/docs/modules/agents/examples/load_from_hub.ipynb b/docs/modules/agents/examples/load_from_hub.ipynbindex e623264350..9e17d7bbd8 100644--- a/docs/modules/agents/examples/load_from_hub.ipynb+++ b/docs/modules/agents/examples/load_from_hub.ipynb@@ -61,7 +61,8 @@"tools = [\n"," Tool(\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",diff --git a/docs/modules/agents/implementations/react.ipynb b/docs/modules/agents/implementations/react.ipynbindex 8ced6b9f25..031d592231 100644--- a/docs/modules/agents/implementations/react.ipynb+++ b/docs/modules/agents/implementations/react.ipynb@@ -24,11 +24,13 @@"tools = [\n"," Tool(\n"," name=\"Search\",\n",- " func=docstore.search\n",+ " func=docstore.search,\n",+ " description=\"useful for when you need to ask with search\"\n"," ),\n"," Tool(\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",diff --git a/docs/modules/agents/implementations/self_ask_with_search.ipynb b/docs/modules/agents/implementations/self_ask_with_search.ipynbindex 8a2642399c..6dbb01e61f 100644--- a/docs/modules/agents/implementations/self_ask_with_search.ipynb+++ b/docs/modules/agents/implementations/self_ask_with_search.ipynb@@ -52,7 +52,8 @@"tools = [\n"," Tool(\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",diff --git a/docs/modules/utils/examples/google_serper.ipynb b/docs/modules/utils/examples/google_serper.ipynbindex 19354126e6..e71e8a67df 100644--- a/docs/modules/utils/examples/google_serper.ipynb+++ b/docs/modules/utils/examples/google_serper.ipynb@@ -121,7 +121,8 @@"tools = [\n"," Tool(\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",