Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ToolMessage import #559

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,11 @@
"source": [
"import replicate\n",
"\n",
"from langchain_core.messages import ToolMessage\n",
"from langchain_core.runnables import RunnableLambda\n",
"from langchain_core.tools import tool\n",
"from langgraph.prebuilt import ToolNode\n",
"\n",
"from langchain_community.tools.tavily_search import TavilySearchResults\n",
"\n",
"@tool\n",
Expand Down Expand Up @@ -375,7 +378,6 @@
"from langgraph.checkpoint.sqlite import SqliteSaver\n",
"from langgraph.graph import END, StateGraph\n",
"from langgraph.prebuilt import ToolNode, tools_condition\n",
"from langchain_core.runnables import RunnableLambda\n",
"\n",
"# Graph\n",
"builder = StateGraph(State)\n",
Expand Down Expand Up @@ -690,7 +692,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down
Loading