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