Add pointers to create_react_agent in how-tos where appropriate (#464)

This commit is contained in:
William FH
2024-05-15 13:50:12 -07:00
committed by GitHub
parent 9c0f9fdb31
commit aef06f17ed
8 changed files with 64 additions and 17 deletions
@@ -11,7 +11,15 @@
"\n",
"This examples builds off the base chat executor. It is highly recommended you learn about that executor before going through this notebook. You can find documentation for that example [here](./base.ipynb).\n",
"\n",
"Any modifications of that example are called below with **MODIFICATION**, so if you are looking for the differences you can just search for that."
"Any modifications of that example are called below with **MODIFICATION**, so if you are looking for the differences you can just search for that.\n",
"\n",
"\n",
"<div class=\"admonition tip\">\n",
" <p class=\"admonition-title\">Note</p>\n",
" <p>\n",
" In this how-to, we will create our agent from scratch to be transparent (but verbose). You can accomplish similar functionality using the <code>create_react_agent(model, tools=tool, interrupt_before=[\"agent\" | \"tools\"], interrupt_after=[\"agent\" | \"tools\"], checkpointer=checkpointer)</code> (<a href=\"https://langchain-ai.github.io/langgraph/reference/prebuilt/#create_react_agent\">API doc</a>) constructor. This may be more appropriate if you are used to LangChains <a href=\"https://python.langchain.com/v0.1/docs/modules/agents/concepts/#agentexecutor\">AgentExecutor</a> class.\n",
" </p>\n",
"</div> "
]
},
{