diff --git a/docs/examples/agents/react.ipynb b/docs/examples/agents/react.ipynb index be4f183406b..925e85cfeb6 100644 --- a/docs/examples/agents/react.ipynb +++ b/docs/examples/agents/react.ipynb @@ -48,9 +48,10 @@ "text": [ "\n", "\n", - "\u001b[1m> Entering new AgentWithTools chain...\u001b[0m\n", + "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n", "\u001b[32;1m\u001b[1;3m\n", - "Thought 1: I need to search David Chanoff and find the U.S. Navy admiral he collaborated with.\n", + "Thought 1: I need to search David Chanoff and find the U.S. Navy admiral he collaborated\n", + "with.\n", "Action 1: Search[David Chanoff]\u001b[0m\n", "Observation 1: \u001b[36;1m\u001b[1;3mDavid Chanoff is a noted author of non-fiction work. His work has typically involved collaborations with the principal protagonist of the work concerned. His collaborators have included; Augustus A. White, Joycelyn Elders, Đoàn Văn Toại, William J. Crowe, Ariel Sharon, Kenneth Good and Felix Zandman. He has also written about a wide range of subjects including literary history, education and foreign for The Washington Post, The New Republic and The New York Times Magazine. He has published more than twelve books.\u001b[0m\n", "Thought 2:\u001b[32;1m\u001b[1;3m The U.S. Navy admiral David Chanoff collaborated with is William J. Crowe.\n", @@ -58,7 +59,7 @@ "Observation 2: \u001b[36;1m\u001b[1;3mWilliam James Crowe Jr. (January 2, 1925 – October 18, 2007) was a United States Navy admiral and diplomat who served as the 11th chairman of the Joint Chiefs of Staff under Presidents Ronald Reagan and George H. W. Bush, and as the ambassador to the United Kingdom and Chair of the Intelligence Oversight Board under President Bill Clinton.\u001b[0m\n", "Thought 3:\u001b[32;1m\u001b[1;3m The President William J. Crowe served as the ambassador to the United Kingdom under is Bill Clinton.\n", "Action 3: Finish[Bill Clinton]\u001b[0m\n", - "\u001b[1m> Finished AgentWithTools chain.\u001b[0m\n" + "\u001b[1m> Finished AgentExecutor chain.\u001b[0m\n" ] }, { diff --git a/langchain/agents/react/wiki_prompt.py b/langchain/agents/react/wiki_prompt.py index 243704069b6..879a554ad3a 100644 --- a/langchain/agents/react/wiki_prompt.py +++ b/langchain/agents/react/wiki_prompt.py @@ -107,7 +107,7 @@ Thought 3: Leonid Levin is a mathematician and computer scientist. So Pavel Urys and Leonid Levin have the same type of work. Action 3: Finish[yes]""", ] -SUFFIX = """\n\nQuestion: {input} +SUFFIX = """\nQuestion: {input} {agent_scratchpad}""" WIKI_PROMPT = PromptTemplate.from_examples(