docs: Update .run() to .invoke() (#24520)

This commit is contained in:
C K Ashby 2024-07-22 17:21:33 -04:00 committed by GitHub
parent 3dce2e1d35
commit ab036c1a4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)"
]
},