diff --git a/docs/docs/integrations/tools/yahoo_finance_news.ipynb b/docs/docs/integrations/tools/yahoo_finance_news.ipynb index 91872eddf74..743e358a954 100644 --- a/docs/docs/integrations/tools/yahoo_finance_news.ipynb +++ b/docs/docs/integrations/tools/yahoo_finance_news.ipynb @@ -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)" ] },