Skip to content

Commit e578bce

Browse files
authored
Merge pull request #147 from UiPath/samples/update_company_research
fix: update tavily company research sample
2 parents e6f0da6 + bf9bf7f commit e578bce

File tree

4 files changed

+1833
-1564
lines changed

4 files changed

+1833
-1564
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,4 @@ cython_debug/
178178
**/.uipath
179179
**/**.nupkg
180180
**/__uipath/
181+
**/.langgraph_api

samples/company-research-agent/graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from langchain_anthropic import ChatAnthropic
2-
from langchain_community.tools.tavily_search import TavilySearchResults
2+
from langchain_tavily import TavilySearch
33
from langgraph.graph import END, START, MessagesState, StateGraph
44
from langgraph.prebuilt import create_react_agent
55
from pydantic import BaseModel
66

77
# Set up the Tavily search tool
8-
tavily_tool = TavilySearchResults(max_results=5)
8+
tavily_tool = TavilySearch(max_results=5)
99

1010
# Define system prompt
1111
system_prompt = """You are an advanced AI assistant specializing in corporate research and outreach strategy development. Your primary functions are:

samples/company-research-agent/pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ description = "Company research agent with Tavily web search"
55
authors = [{ name = "John Doe", email = "john.doe@myemail.com" }]
66
requires-python = ">=3.10"
77
dependencies = [
8-
"langgraph>=0.2.55",
9-
"langchain-anthropic>=0.3.8",
10-
"tavily-python>=0.5.0",
11-
"uipath-langchain==0.0.113"
8+
"langgraph>=0.6.5",
9+
"langchain-anthropic>=0.3.19",
10+
"tavily-python>=0.7.11",
11+
"langchain-tavily>=0.2.11",
12+
"uipath-langchain==0.0.123"
1213
]
1314

1415
[project.optional-dependencies]

0 commit comments

Comments
 (0)