Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import json
|
| 2 |
-
from langchain_tavily import
|
| 3 |
from langgraph.prebuilt import create_react_agent
|
| 4 |
from langgraph_supervisor import create_supervisor
|
| 5 |
from langchain_groq import ChatGroq
|
|
@@ -79,8 +79,9 @@ prompt_chess = """You are a chess position reviewing agent.
|
|
| 79 |
|
| 80 |
|
| 81 |
# --- Tools ---
|
| 82 |
-
web_search =
|
| 83 |
max_results=5,
|
|
|
|
| 84 |
tavily_api_key=tavily_token
|
| 85 |
)
|
| 86 |
|
|
|
|
| 1 |
import json
|
| 2 |
+
from langchain_tavily import TavilySearch
|
| 3 |
from langgraph.prebuilt import create_react_agent
|
| 4 |
from langgraph_supervisor import create_supervisor
|
| 5 |
from langchain_groq import ChatGroq
|
|
|
|
| 79 |
|
| 80 |
|
| 81 |
# --- Tools ---
|
| 82 |
+
web_search = TavilySearch(
|
| 83 |
max_results=5,
|
| 84 |
+
topic="general",
|
| 85 |
tavily_api_key=tavily_token
|
| 86 |
)
|
| 87 |
|