move search to not be a chain (#226)

This commit is contained in:
Harrison Chase
2022-11-29 20:07:44 -08:00
committed by GitHub
parent b19a73be26
commit ca2394028f
13 changed files with 40 additions and 54 deletions
+2 -2
View File
@@ -29,7 +29,7 @@
"source": [
"from langchain.agents import ZeroShotAgent, Tool\n",
"from langchain.chains.conversation.memory import ConversationBufferMemory\n",
"from langchain import OpenAI, SerpAPIChain, LLMChain"
"from langchain import OpenAI, SerpAPIWrapper, LLMChain"
]
},
{
@@ -39,7 +39,7 @@
"metadata": {},
"outputs": [],
"source": [
"search = SerpAPIChain()\n",
"search = SerpAPIWrapper()\n",
"tools = [\n",
" Tool(\n",
" name = \"Search\",\n",