mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-30 10:23:30 +00:00
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)
This commit is contained in:
parent
61cd83bf96
commit
3d859075d4
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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"
|
||||
),
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
),
|
||||
|
@ -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"
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user