exa-py 1.1.0__py3-none-any.whl → 1.1.2__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
|
@@ -27,11 +27,8 @@ from exa_py.utils import (
|
|
|
27
27
|
format_exa_result,
|
|
28
28
|
maybe_get_query,
|
|
29
29
|
)
|
|
30
|
-
from dotenv import load_dotenv
|
|
31
30
|
import os
|
|
32
31
|
|
|
33
|
-
load_dotenv()
|
|
34
|
-
|
|
35
32
|
is_beta = os.getenv("IS_BETA") == "True"
|
|
36
33
|
|
|
37
34
|
|
|
@@ -415,11 +412,13 @@ class SearchResponse(Generic[T]):
|
|
|
415
412
|
Attributes:
|
|
416
413
|
results (List[Result]): A list of search results.
|
|
417
414
|
autoprompt_string (str, optional): The Exa query created by the autoprompt functionality.
|
|
415
|
+
auto_date (str, optional): The date the autoprompt determines for filtering results to the ones you want.
|
|
418
416
|
resolved_search_type (str, optional): What "auto" search resolved to. "neural" or "keyword".
|
|
419
417
|
"""
|
|
420
418
|
|
|
421
419
|
results: List[T]
|
|
422
420
|
autoprompt_string: Optional[str]
|
|
421
|
+
auto_date: Optional[str]
|
|
423
422
|
resolved_search_type: Optional[str]
|
|
424
423
|
|
|
425
424
|
def __str__(self):
|
|
@@ -526,6 +525,7 @@ class Exa:
|
|
|
526
525
|
return SearchResponse(
|
|
527
526
|
[Result(**to_snake_case(result)) for result in data["results"]],
|
|
528
527
|
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
530
|
)
|
|
531
531
|
|
|
@@ -742,6 +742,7 @@ class Exa:
|
|
|
742
742
|
return SearchResponse(
|
|
743
743
|
[Result(**to_snake_case(result)) for result in data["results"]],
|
|
744
744
|
data["autopromptString"] if "autopromptString" in data else None,
|
|
745
|
+
data["autoDate"] if "autoDate" in data else None,
|
|
745
746
|
data["resolvedSearchType"] if "resolvedSearchType" in data else None,
|
|
746
747
|
)
|
|
747
748
|
|
|
@@ -0,0 +1,8 @@
|
|
|
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,,
|
exa_py-1.1.0.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
exa_py/__init__.py,sha256=aVF1zB_UV3dagJ5Vn2WrdcInzibdIW61M89sjwRCU_g,29
|
|
2
|
-
exa_py/api.py,sha256=mt7q77-kyyKWdap0PV7OpiFcoj4W55E0Yd3uNb_o00U,45910
|
|
3
|
-
exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
exa_py/utils.py,sha256=Rc1FJjoR9LQ7L_OJM91Sd1GNkbHjcLyEvJENhRix6gc,2405
|
|
5
|
-
exa_py-1.1.0.dist-info/METADATA,sha256=NIYG4NYcdl5alj6k7h39yHg6NEtcaPrmXrEAXLJMp2I,3030
|
|
6
|
-
exa_py-1.1.0.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
|
|
7
|
-
exa_py-1.1.0.dist-info/top_level.txt,sha256=Mfkmscdw9HWR1PtVhU1gAiVo6DHu_tyiVdb89gfZBVI,7
|
|
8
|
-
exa_py-1.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|