update ddgs
Browse files- agent.py +2 -2
- requirements.txt +1 -1
agent.py
CHANGED
|
@@ -5,7 +5,7 @@ from langgraph.graph import StateGraph, START, END
|
|
| 5 |
from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint, HuggingFacePipeline
|
| 6 |
from langchain_core.messages import HumanMessage, AIMessage
|
| 7 |
from langchain_core.tools import tool
|
| 8 |
-
from
|
| 9 |
from dotenv import load_dotenv
|
| 10 |
|
| 11 |
|
|
@@ -38,7 +38,7 @@ def web_search(keywords: str, max_results:int = 5) -> str:
|
|
| 38 |
max_results: number of results to show after searching the web, defaults to 5
|
| 39 |
|
| 40 |
Returns:
|
| 41 |
-
Search result (Header + body +
|
| 42 |
"""
|
| 43 |
with DDGS() as ddgs:
|
| 44 |
# Perform a text search
|
|
|
|
| 5 |
from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint, HuggingFacePipeline
|
| 6 |
from langchain_core.messages import HumanMessage, AIMessage
|
| 7 |
from langchain_core.tools import tool
|
| 8 |
+
from ddgs import DDGS
|
| 9 |
from dotenv import load_dotenv
|
| 10 |
|
| 11 |
|
|
|
|
| 38 |
max_results: number of results to show after searching the web, defaults to 5
|
| 39 |
|
| 40 |
Returns:
|
| 41 |
+
Search result (Header + body + url)
|
| 42 |
"""
|
| 43 |
with DDGS() as ddgs:
|
| 44 |
# Perform a text search
|
requirements.txt
CHANGED
|
@@ -18,4 +18,4 @@ pgvector
|
|
| 18 |
python-dotenv
|
| 19 |
pandas
|
| 20 |
numpy
|
| 21 |
-
|
|
|
|
| 18 |
python-dotenv
|
| 19 |
pandas
|
| 20 |
numpy
|
| 21 |
+
ddgs
|