mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-31 12:19:58 +02:00
docs: small cleanup (#733)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user