Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions samples/chat-agent/graph.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from langchain_anthropic import ChatAnthropic
from langchain_tavily import TavilySearch
from langgraph.prebuilt import create_react_agent
from langchain.agents import create_agent

tavily_tool = TavilySearch(max_results=5)

Expand Down Expand Up @@ -28,4 +28,4 @@
"""

llm = ChatAnthropic(model="claude-3-5-sonnet-latest")
graph = create_react_agent(llm, tools=[tavily_tool], prompt=movie_system_prompt)
graph = create_agent(llm, tools=[tavily_tool], prompt=movie_system_prompt)
8 changes: 5 additions & 3 deletions samples/chat-agent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ description = "Chat agent with Tavily web search"
authors = [{ name = "John Doe", email = "john.doe@myemail.com" }]
requires-python = ">=3.10"
dependencies = [
"langgraph>=0.6.5",
"langchain-anthropic>=0.3.19",
"langgraph>=0.6.10",
"langchain-anthropic>=1.0.0a5",
"tavily-python>=0.7.11",
"langchain-tavily>=0.2.11",
"uipath-langchain>=0.0.126",
"uipath-langchain>=0.0.140",
"uipath>=2.1.41",
"langchain>=1.0.0a9",
"openinference-instrumentation-langchain>=0.1.53",
]

[project.optional-dependencies]
Expand Down
Loading