Skip to content

Commit 9e1d535

Browse files
committed
chore: upload tavily search class
1 parent fc45711 commit 9e1d535

File tree

8 files changed

+5198
-3927
lines changed

8 files changed

+5198
-3927
lines changed

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ dev = [
5656
"pytest_httpx>=0.35.0"
5757
]
5858

59-
[project.optional-dependencies]
60-
langchain = [
61-
"uipath-langchain>=0.0.2"
62-
]
63-
6459
[tool.hatch.build.targets.wheel]
6560
packages = ["src/uipath_langchain"]
6661

samples/RAG-quiz-generator/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ dependencies = [
99
"langchain-anthropic>=0.3.8",
1010
"langchain-experimental>=0.3.4",
1111
"tavily-python>=0.5.0",
12-
"uipath-langchain==0.0.113",
12+
"uipath-langchain>=0.0.113",
13+
"langchain-tavily>=0.2.11",
1314
]
1415
requires-python = ">=3.10"

samples/RAG-quiz-generator/src/agents/researcher-RAG-agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Optional
22
import time
33
from langchain_anthropic import ChatAnthropic
4-
from langchain_community.tools.tavily_search import TavilySearchResults
4+
from langchain_tavily import TavilySearch
55
from langgraph.graph import END, START, MessagesState, StateGraph
66
from langgraph.prebuilt import create_react_agent
77
from langgraph.types import Command
@@ -11,7 +11,7 @@
1111
from uipath.models import ContextGroundingIndex
1212

1313
uipath = UiPath()
14-
tavily_tool = TavilySearchResults(max_results=5)
14+
tavily_tool = TavilySearch(max_results=5)
1515
anthropic_model = "claude-3-5-sonnet-latest"
1616

1717

samples/RAG-quiz-generator/uv.lock

Lines changed: 1876 additions & 1523 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/multi-agent-planner-researcher-coder-distributed/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ dependencies = [
99
"langchain-anthropic>=0.3.8",
1010
"langchain-experimental>=0.3.4",
1111
"tavily-python>=0.5.0",
12-
"uipath-langchain==0.0.113"
12+
"uipath-langchain>=0.0.113",
13+
"langchain-tavily>=0.2.11",
1314
]
1415

1516
[project.optional-dependencies]

samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/researcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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

7-
tavily_tool = TavilySearchResults(max_results=5)
7+
tavily_tool = TavilySearch(max_results=5)
88

99
llm = ChatAnthropic(model="claude-3-5-sonnet-latest")
1010

samples/multi-agent-planner-researcher-coder-distributed/uv.lock

Lines changed: 2263 additions & 1434 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

uv.lock

Lines changed: 1051 additions & 959 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)