change to agent (#173)

This commit is contained in:
Harrison Chase
2022-11-22 18:02:20 -08:00
committed by GitHub
parent d70b5a2cbe
commit 5d887970f6
8 changed files with 48 additions and 24 deletions

View File

@@ -68,7 +68,7 @@
"metadata": {},
"outputs": [],
"source": [
"mrkl = initialize_agent(tools, llm, agent_type=\"zero-shot-react-description\", verbose=True)"
"mrkl = initialize_agent(tools, llm, agent=\"zero-shot-react-description\", verbose=True)"
]
},
{

View File

@@ -33,7 +33,7 @@
"]\n",
"\n",
"llm = OpenAI(temperature=0)\n",
"react = initialize_agent(tools, llm, agent_type=\"react-docstore\", verbose=True)"
"react = initialize_agent(tools, llm, agent=\"react-docstore\", verbose=True)"
]
},
{

View File

@@ -53,7 +53,7 @@
" )\n",
"]\n",
"\n",
"self_ask_with_search = initialize_agent(tools, llm, agent_type=\"self-ask-with-search\", verbose=True)\n",
"self_ask_with_search = initialize_agent(tools, llm, agent=\"self-ask-with-search\", verbose=True)\n",
"\n",
"self_ask_with_search.run(\"What is the hometown of the reigning men's U.S. Open champion?\")"
]