zrb 1.15.13__py3-none-any.whl → 1.15.14__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.
zrb/builtin/llm/tool/web.py
CHANGED
@@ -98,7 +98,13 @@ def search_wikipedia(query: str) -> str:
|
|
98
98
|
import requests
|
99
99
|
|
100
100
|
params = {"action": "query", "list": "search", "srsearch": query, "format": "json"}
|
101
|
-
response = requests.get(
|
101
|
+
response = requests.get(
|
102
|
+
"https://en.wikipedia.org/w/api.php",
|
103
|
+
headers={
|
104
|
+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
|
105
|
+
},
|
106
|
+
params=params,
|
107
|
+
)
|
102
108
|
return response.json()
|
103
109
|
|
104
110
|
|
@@ -123,7 +129,13 @@ def search_arxiv(query: str, num_results: int = 10) -> str:
|
|
123
129
|
import requests
|
124
130
|
|
125
131
|
params = {"search_query": f"all:{query}", "start": 0, "max_results": num_results}
|
126
|
-
response = requests.get(
|
132
|
+
response = requests.get(
|
133
|
+
"http://export.arxiv.org/api/query",
|
134
|
+
headers={
|
135
|
+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
|
136
|
+
},
|
137
|
+
params=params,
|
138
|
+
)
|
127
139
|
return response.content
|
128
140
|
|
129
141
|
|
@@ -21,7 +21,7 @@ zrb/builtin/llm/tool/code.py,sha256=fr9FbmtfwizQTyTztvuvwAb9MD_auRZhPZfoJVBlKT4,
|
|
21
21
|
zrb/builtin/llm/tool/file.py,sha256=eXFGGFxxpdpWGVw0svyQNQc03I5M7wotSsA_HjkXw7c,23670
|
22
22
|
zrb/builtin/llm/tool/rag.py,sha256=Ab8_ZljnG_zfkwxPezImvorshuz3Fi4CmSzNOtU1a-g,9770
|
23
23
|
zrb/builtin/llm/tool/sub_agent.py,sha256=dPqdFCXxJ-3hZnPjheZr-bPeKNbfSBSDKcZZR5vkWFM,5075
|
24
|
-
zrb/builtin/llm/tool/web.py,sha256=
|
24
|
+
zrb/builtin/llm/tool/web.py,sha256=Hc9ikgBWZMgLB2O5lX-P9k8jvNSZeyUufqHXa_n_v4I,7653
|
25
25
|
zrb/builtin/md5.py,sha256=690RV2LbW7wQeTFxY-lmmqTSVEEZv3XZbjEUW1Q3XpE,1480
|
26
26
|
zrb/builtin/project/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
27
27
|
zrb/builtin/project/add/fastapp/fastapp_input.py,sha256=MKlWR_LxWhM_DcULCtLfL_IjTxpDnDBkn9KIqNmajFs,310
|
@@ -409,7 +409,7 @@ zrb/util/todo_model.py,sha256=hhzAX-uFl5rsg7iVX1ULlJOfBtblwQ_ieNUxBWfc-Os,1670
|
|
409
409
|
zrb/util/truncate.py,sha256=eSzmjBpc1Qod3lM3M73snNbDOcARHukW_tq36dWdPvc,921
|
410
410
|
zrb/xcom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
411
411
|
zrb/xcom/xcom.py,sha256=o79rxR9wphnShrcIushA0Qt71d_p3ZTxjNf7x9hJB78,1571
|
412
|
-
zrb-1.15.
|
413
|
-
zrb-1.15.
|
414
|
-
zrb-1.15.
|
415
|
-
zrb-1.15.
|
412
|
+
zrb-1.15.14.dist-info/METADATA,sha256=UzPUFFhPCo01R3K87PDAMkPGMi_0mGYliiKr0zPFDSs,9775
|
413
|
+
zrb-1.15.14.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
414
|
+
zrb-1.15.14.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
|
415
|
+
zrb-1.15.14.dist-info/RECORD,,
|
File without changes
|
File without changes
|