aient 1.0.94__py3-none-any.whl → 1.0.95__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aient/plugins/websearch.py +1 -1
- {aient-1.0.94.dist-info → aient-1.0.95.dist-info}/METADATA +1 -1
- {aient-1.0.94.dist-info → aient-1.0.95.dist-info}/RECORD +6 -6
- {aient-1.0.94.dist-info → aient-1.0.95.dist-info}/WHEEL +0 -0
- {aient-1.0.94.dist-info → aient-1.0.95.dist-info}/licenses/LICENSE +0 -0
- {aient-1.0.94.dist-info → aient-1.0.95.dist-info}/top_level.txt +0 -0
aient/plugins/websearch.py
CHANGED
@@ -6,7 +6,6 @@ import threading
|
|
6
6
|
import time as record_time
|
7
7
|
from itertools import islice
|
8
8
|
from bs4 import BeautifulSoup
|
9
|
-
from duckduckgo_search import DDGS
|
10
9
|
from .registry import register_tool
|
11
10
|
|
12
11
|
class ThreadWithReturnValue(threading.Thread):
|
@@ -178,6 +177,7 @@ def get_url_content(url: str) -> str:
|
|
178
177
|
|
179
178
|
def getddgsearchurl(query, max_results=4):
|
180
179
|
try:
|
180
|
+
from duckduckgo_search import DDGS
|
181
181
|
results = []
|
182
182
|
with DDGS() as ddgs:
|
183
183
|
ddgs_gen = ddgs.text(query, safesearch='Off', timelimit='y', backend="lite")
|
@@ -30,15 +30,15 @@ aient/plugins/list_directory.py,sha256=5ubm-mfrj-tanGSDp4M_Tmb6vQb3dx2-XVfQ2yL2G
|
|
30
30
|
aient/plugins/read_file.py,sha256=cJxGnhcz1_gjkgeemVyixLUiCvf-dWm-UtDfrbFdlLE,4857
|
31
31
|
aient/plugins/registry.py,sha256=YknzhieU_8nQ3oKlUSSWDB4X7t2Jx0JnqT2Jd9Xsvfk,3574
|
32
32
|
aient/plugins/run_python.py,sha256=dgcUwBunMuDkaSKR5bToudVzSdrXVewktDDFUz_iIOQ,4589
|
33
|
-
aient/plugins/websearch.py,sha256=
|
33
|
+
aient/plugins/websearch.py,sha256=a-JJZjEZ5MEQ9WBMkD7okBHYehLSzApoLMiyqBnxDqs,15193
|
34
34
|
aient/plugins/write_file.py,sha256=qmT6iQ3mDyVAa9Sld1jfJq0KPZj0w2kRIHq0JyjpGeA,1853
|
35
35
|
aient/prompt/__init__.py,sha256=GBtn6-JDT8KHFCcuPpfSNE_aGddg5p4FEyMCy4BfwGs,20
|
36
36
|
aient/prompt/agent.py,sha256=3VycHGnUq9OdR5pd_RM0AeLESlpAgBcmzrsesfq82X0,23856
|
37
37
|
aient/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
38
|
aient/utils/prompt.py,sha256=UcSzKkFE4-h_1b6NofI6xgk3GoleqALRKY8VBaXLjmI,11311
|
39
39
|
aient/utils/scripts.py,sha256=JbYHsU3LLtxBcuO_2MWbSgpHpCgtVQe9FGEFJpUyejc,25926
|
40
|
-
aient-1.0.
|
41
|
-
aient-1.0.
|
42
|
-
aient-1.0.
|
43
|
-
aient-1.0.
|
44
|
-
aient-1.0.
|
40
|
+
aient-1.0.95.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
|
41
|
+
aient-1.0.95.dist-info/METADATA,sha256=HbwsFj_m6N-d67WxvnwsrYQRHjHbMN5Y4ePXcte0gRI,4969
|
42
|
+
aient-1.0.95.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
43
|
+
aient-1.0.95.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
|
44
|
+
aient-1.0.95.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|