exa-py 1.1.2__py3-none-any.whl → 1.1.4__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.
Potentially problematic release.
This version of exa-py might be problematic. Click here for more details.
exa_py/api.py
CHANGED
|
@@ -143,10 +143,11 @@ CONTENTS_OPTIONS_TYPES = {
|
|
|
143
143
|
LIVECRAWL_OPTIONS = Literal["always", "fallback", "never"]
|
|
144
144
|
CONTENTS_OPTIONS_TYPES["livecrawl_timeout"] = [int]
|
|
145
145
|
CONTENTS_OPTIONS_TYPES["livecrawl"] = [LIVECRAWL_OPTIONS]
|
|
146
|
+
CONTENTS_OPTIONS_TYPES["filter_empty_results"] = [bool]
|
|
146
147
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
# FOR BETA OPTIONS
|
|
149
|
+
# if is_beta:
|
|
150
|
+
|
|
150
151
|
|
|
151
152
|
def validate_search_options(
|
|
152
153
|
options: Dict[str, Optional[object]], expected: dict
|
|
@@ -418,8 +419,8 @@ class SearchResponse(Generic[T]):
|
|
|
418
419
|
|
|
419
420
|
results: List[T]
|
|
420
421
|
autoprompt_string: Optional[str]
|
|
421
|
-
auto_date: Optional[str]
|
|
422
422
|
resolved_search_type: Optional[str]
|
|
423
|
+
auto_date: Optional[str]
|
|
423
424
|
|
|
424
425
|
def __str__(self):
|
|
425
426
|
output = "\n\n".join(str(result) for result in self.results)
|
|
@@ -525,8 +526,8 @@ class Exa:
|
|
|
525
526
|
return SearchResponse(
|
|
526
527
|
[Result(**to_snake_case(result)) for result in data["results"]],
|
|
527
528
|
data["autopromptString"] if "autopromptString" in data else None,
|
|
528
|
-
data["autoDate"] if "autoDate" in data else None,
|
|
529
529
|
data["resolvedSearchType"] if "resolvedSearchType" in data else None,
|
|
530
|
+
data["autoDate"] if "autoDate" in data else None,
|
|
530
531
|
)
|
|
531
532
|
|
|
532
533
|
@overload
|
|
@@ -860,6 +861,7 @@ class Exa:
|
|
|
860
861
|
[Result(**to_snake_case(result)) for result in data["results"]],
|
|
861
862
|
data["autopromptString"] if "autopromptString" in data else None,
|
|
862
863
|
data["resolvedSearchType"] if "resolvedSearchType" in data else None,
|
|
864
|
+
data["autoDate"] if "autoDate" in data else None,
|
|
863
865
|
)
|
|
864
866
|
|
|
865
867
|
def find_similar(
|
|
@@ -886,6 +888,7 @@ class Exa:
|
|
|
886
888
|
[Result(**to_snake_case(result)) for result in data["results"]],
|
|
887
889
|
data["autopromptString"] if "autopromptString" in data else None,
|
|
888
890
|
data["resolvedSearchType"] if "resolvedSearchType" in data else None,
|
|
891
|
+
data["autoDate"] if "autoDate" in data else None,
|
|
889
892
|
)
|
|
890
893
|
|
|
891
894
|
@overload
|
|
@@ -1094,6 +1097,7 @@ class Exa:
|
|
|
1094
1097
|
[Result(**to_snake_case(result)) for result in data["results"]],
|
|
1095
1098
|
data["autopromptString"] if "autopromptString" in data else None,
|
|
1096
1099
|
data["resolvedSearchType"] if "resolvedSearchType" in data else None,
|
|
1100
|
+
data["autoDate"] if "autoDate" in data else None,
|
|
1097
1101
|
)
|
|
1098
1102
|
|
|
1099
1103
|
def wrap(self, client: OpenAI):
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 1.1.
|
|
2
|
+
Name: exa-py
|
|
3
|
+
Version: 1.1.4
|
|
4
4
|
Summary: Python SDK for Exa API.
|
|
5
5
|
Home-page: https://github.com/exa-labs/exa-py
|
|
6
6
|
Author: Exa
|
|
7
7
|
Author-email: hello@exa.ai
|
|
8
|
+
License: UNKNOWN
|
|
9
|
+
Platform: UNKNOWN
|
|
8
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
9
11
|
Classifier: Intended Audience :: Developers
|
|
10
12
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -17,7 +19,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
17
19
|
Description-Content-Type: text/markdown
|
|
18
20
|
Requires-Dist: requests
|
|
19
21
|
Requires-Dist: typing-extensions
|
|
20
|
-
Requires-Dist: openai >=1.10.0
|
|
22
|
+
Requires-Dist: openai (>=1.10.0)
|
|
21
23
|
|
|
22
24
|
# Exa
|
|
23
25
|
|
|
@@ -92,3 +94,5 @@ exa = Exa(api_key="your-api-key")
|
|
|
92
94
|
highlights={"highlights_per_url": 2, "num_sentences": 1, "query": "This is the highlight query:"})
|
|
93
95
|
```
|
|
94
96
|
|
|
97
|
+
|
|
98
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
exa_py/__init__.py,sha256=aVF1zB_UV3dagJ5Vn2WrdcInzibdIW61M89sjwRCU_g,29
|
|
2
|
+
exa_py/api.py,sha256=A0SRKJjz-Of5TuB_iWz74_IOnzbm6uLVLVa_PHuAL2o,46338
|
|
3
|
+
exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
exa_py/utils.py,sha256=Rc1FJjoR9LQ7L_OJM91Sd1GNkbHjcLyEvJENhRix6gc,2405
|
|
5
|
+
exa_py-1.1.4.dist-info/METADATA,sha256=BYt57SyQmC8rIhhszVMVpadyx0iBX2xqWQ6qlyzkpMU,3069
|
|
6
|
+
exa_py-1.1.4.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
|
|
7
|
+
exa_py-1.1.4.dist-info/top_level.txt,sha256=Mfkmscdw9HWR1PtVhU1gAiVo6DHu_tyiVdb89gfZBVI,7
|
|
8
|
+
exa_py-1.1.4.dist-info/RECORD,,
|
exa_py-1.1.2.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
exa_py/__init__.py,sha256=aVF1zB_UV3dagJ5Vn2WrdcInzibdIW61M89sjwRCU_g,29
|
|
2
|
-
exa_py/api.py,sha256=C8uSx-61Eh24uYG9mnbpPl01E4DrL70uWPYdxKzLC1Q,46131
|
|
3
|
-
exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
exa_py/utils.py,sha256=Rc1FJjoR9LQ7L_OJM91Sd1GNkbHjcLyEvJENhRix6gc,2405
|
|
5
|
-
exa_py-1.1.2.dist-info/METADATA,sha256=2-2f5wyMaXGat8D5Woz9eAgj1KwaZ6_UNFYIMyodmgI,3030
|
|
6
|
-
exa_py-1.1.2.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
|
|
7
|
-
exa_py-1.1.2.dist-info/top_level.txt,sha256=Mfkmscdw9HWR1PtVhU1gAiVo6DHu_tyiVdb89gfZBVI,7
|
|
8
|
-
exa_py-1.1.2.dist-info/RECORD,,
|
|
File without changes
|