docs: small cleanup (#733)

This commit is contained in:
Vadym Barda
2024-06-20 21:02:27 -04:00
committed by GitHub
parent edfca48549
commit cae502b8fe
29 changed files with 137 additions and 142 deletions
+3 -3
View File
@@ -165,7 +165,7 @@
"outputs": [],
"source": [
"%%capture --no-stderr --no-display\n",
"!pip install langchain_community langchain_openai"
"!pip install langgraph langchain_community langchain_openai"
]
},
{
@@ -246,6 +246,7 @@
"\n",
"from langchain_core.messages import ToolMessage\n",
"from langchain_core.runnables import RunnableLambda, RunnableWithFallbacks\n",
"from langgraph.prebuilt import ToolNode\n",
"\n",
"\n",
"def create_tool_node_with_fallback(tools: list) -> RunnableWithFallbacks[Any, dict]:\n",
@@ -380,7 +381,7 @@
}
],
"source": [
"from langchain.agents import tool\n",
"from langchain_core.tools import tool\n",
"\n",
"\n",
"@tool\n",
@@ -501,7 +502,6 @@
"\n",
"from langgraph.graph import END, StateGraph\n",
"from langgraph.graph.message import AnyMessage, add_messages\n",
"from langgraph.prebuilt.tool_node import ToolNode\n",
"\n",
"\n",
"# Define the state for the agent\n",