From 3d859075d4030122d13d8fa51eff85fff35f8274 Mon Sep 17 00:00:00 2001 From: zhengkai <994171686@qq.com> Date: Mon, 2 Oct 2023 22:02:30 +0800 Subject: [PATCH] Remove extra spaces (#11283) ### Description When I was reading the document, I found that some examples had extra spaces and violated "Unexpected spaces around keyword / parameter equals (E251)" in pep8. I removed these extra spaces. ### Tag maintainer @eyurtsev ### Twitter handle [billvsme](https://twitter.com/billvsme) --- .../modules/agents/agent_types/chat_conversation_agent.ipynb | 2 +- .../modules/agents/agent_types/openai_functions_agent.ipynb | 2 +- .../more/agents/autonomous_agents/plan_and_execute.mdx | 2 +- docs/snippets/modules/agents/how_to/custom_llm_agent.mdx | 2 +- docs/snippets/modules/agents/how_to/custom_llm_chat_agent.mdx | 2 +- docs/snippets/modules/agents/how_to/mrkl.mdx | 2 +- docs/snippets/modules/agents/how_to/mrkl_chat.mdx | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/extras/modules/agents/agent_types/chat_conversation_agent.ipynb b/docs/extras/modules/agents/agent_types/chat_conversation_agent.ipynb index 758ebb649..c12cf6043 100644 --- a/docs/extras/modules/agents/agent_types/chat_conversation_agent.ipynb +++ b/docs/extras/modules/agents/agent_types/chat_conversation_agent.ipynb @@ -38,7 +38,7 @@ "search = SerpAPIWrapper()\n", "tools = [\n", " Tool(\n", - " name = \"Current Search\",\n", + " name=\"Current Search\",\n", " func=search.run,\n", " description=\"useful for when you need to answer questions about current events or the current state of the world\"\n", " ),\n", diff --git a/docs/extras/modules/agents/agent_types/openai_functions_agent.ipynb b/docs/extras/modules/agents/agent_types/openai_functions_agent.ipynb index 20cd70d03..55745352f 100644 --- a/docs/extras/modules/agents/agent_types/openai_functions_agent.ipynb +++ b/docs/extras/modules/agents/agent_types/openai_functions_agent.ipynb @@ -63,7 +63,7 @@ "db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True)\n", "tools = [\n", " Tool(\n", - " name = \"Search\",\n", + " name=\"Search\",\n", " func=search.run,\n", " description=\"useful for when you need to answer questions about current events. You should ask targeted questions\"\n", " ),\n", diff --git a/docs/extras/use_cases/more/agents/autonomous_agents/plan_and_execute.mdx b/docs/extras/use_cases/more/agents/autonomous_agents/plan_and_execute.mdx index f8b6131b4..eac3fdb8c 100644 --- a/docs/extras/use_cases/more/agents/autonomous_agents/plan_and_execute.mdx +++ b/docs/extras/use_cases/more/agents/autonomous_agents/plan_and_execute.mdx @@ -27,7 +27,7 @@ llm = OpenAI(temperature=0) llm_math_chain = LLMMathChain.from_llm(llm=llm, verbose=True) tools = [ Tool( - name = "Search", + name="Search", func=search.run, description="useful for when you need to answer questions about current events" ), diff --git a/docs/snippets/modules/agents/how_to/custom_llm_agent.mdx b/docs/snippets/modules/agents/how_to/custom_llm_agent.mdx index b23404e4e..073a571f2 100644 --- a/docs/snippets/modules/agents/how_to/custom_llm_agent.mdx +++ b/docs/snippets/modules/agents/how_to/custom_llm_agent.mdx @@ -36,7 +36,7 @@ Set up any tools the agent may want to use. This may be necessary to put in the search = SerpAPIWrapper() tools = [ Tool( - name = "Search", + name="Search", func=search.run, description="useful for when you need to answer questions about current events" ) diff --git a/docs/snippets/modules/agents/how_to/custom_llm_chat_agent.mdx b/docs/snippets/modules/agents/how_to/custom_llm_chat_agent.mdx index acacb6359..8f61f9a64 100644 --- a/docs/snippets/modules/agents/how_to/custom_llm_chat_agent.mdx +++ b/docs/snippets/modules/agents/how_to/custom_llm_chat_agent.mdx @@ -51,7 +51,7 @@ SERPAPI_API_KEY = getpass() search = SerpAPIWrapper(serpapi_api_key=SERPAPI_API_KEY) tools = [ Tool( - name = "Search", + name="Search", func=search.run, description="useful for when you need to answer questions about current events" ) diff --git a/docs/snippets/modules/agents/how_to/mrkl.mdx b/docs/snippets/modules/agents/how_to/mrkl.mdx index c88951762..bcb23e287 100644 --- a/docs/snippets/modules/agents/how_to/mrkl.mdx +++ b/docs/snippets/modules/agents/how_to/mrkl.mdx @@ -13,7 +13,7 @@ db = SQLDatabase.from_uri("sqlite:///../../../../../notebooks/Chinook.db") db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True) tools = [ Tool( - name = "Search", + name="Search", func=search.run, description="useful for when you need to answer questions about current events. You should ask targeted questions" ), diff --git a/docs/snippets/modules/agents/how_to/mrkl_chat.mdx b/docs/snippets/modules/agents/how_to/mrkl_chat.mdx index 6cf7fe88b..16ad1aee5 100644 --- a/docs/snippets/modules/agents/how_to/mrkl_chat.mdx +++ b/docs/snippets/modules/agents/how_to/mrkl_chat.mdx @@ -9,7 +9,7 @@ db = SQLDatabase.from_uri("sqlite:///../../../../../notebooks/Chinook.db") db_chain = SQLDatabaseChain.from_llm(llm1, db, verbose=True) tools = [ Tool( - name = "Search", + name="Search", func=search.run, description="useful for when you need to answer questions about current events. You should ask targeted questions" ),