mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
docs: Update .run() to .invoke() (#24520)
This commit is contained in:
parent
3dce2e1d35
commit
ab036c1a4c
@ -102,8 +102,8 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"agent_chain.run(\n",
|
||||
" \"What happens today with Microsoft stocks?\",\n",
|
||||
"agent_chain.invoke(\n",
|
||||
" \"What happened today with Microsoft stocks?\",\n",
|
||||
")"
|
||||
]
|
||||
},
|
||||
@ -147,7 +147,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"agent_chain.run(\n",
|
||||
"agent_chain.invoke(\n",
|
||||
" \"How does Microsoft feels today comparing with Nvidia?\",\n",
|
||||
")"
|
||||
]
|
||||
@ -188,7 +188,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"tool.run(\"NVDA\")"
|
||||
"tool.invoke(\"NVDA\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -210,7 +210,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"res = tool.run(\"AAPL\")\n",
|
||||
"res = tool.invoke(\"AAPL\")\n",
|
||||
"print(res)"
|
||||
]
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user