exa-py 1.0.18b1__tar.gz → 1.1.1__tar.gz

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: exa_py
3
- Version: 1.0.18b1
3
+ Version: 1.1.1
4
4
  Summary: Python SDK for Exa API.
5
5
  Home-page: https://github.com/exa-labs/exa-py
6
6
  Author: Exa
@@ -142,12 +142,12 @@ CONTENTS_OPTIONS_TYPES = {
142
142
 
143
143
  }
144
144
 
145
+ # the livecrawl options
146
+ LIVECRAWL_OPTIONS = Literal["always", "fallback", "never"]
147
+ CONTENTS_OPTIONS_TYPES["livecrawl_timeout"] = [int]
148
+ CONTENTS_OPTIONS_TYPES["livecrawl"] = [LIVECRAWL_OPTIONS]
149
+
145
150
  if is_beta:
146
- # the livecrawl options
147
- LIVECRAWL_OPTIONS = Literal["always", "fallback", "never"]
148
-
149
- CONTENTS_OPTIONS_TYPES["livecrawl_timeout"] = [int]
150
- CONTENTS_OPTIONS_TYPES["livecrawl"] = [LIVECRAWL_OPTIONS]
151
151
  CONTENTS_OPTIONS_TYPES["filter_empty_results"] = [bool]
152
152
 
153
153
 
@@ -415,11 +415,13 @@ class SearchResponse(Generic[T]):
415
415
  Attributes:
416
416
  results (List[Result]): A list of search results.
417
417
  autoprompt_string (str, optional): The Exa query created by the autoprompt functionality.
418
+ auto_date (str, optional): The date the autoprompt determines for filtering results to the ones you want.
418
419
  resolved_search_type (str, optional): What "auto" search resolved to. "neural" or "keyword".
419
420
  """
420
421
 
421
422
  results: List[T]
422
423
  autoprompt_string: Optional[str]
424
+ auto_date: Optional[str]
423
425
  resolved_search_type: Optional[str]
424
426
 
425
427
  def __str__(self):
@@ -526,6 +528,7 @@ class Exa:
526
528
  return SearchResponse(
527
529
  [Result(**to_snake_case(result)) for result in data["results"]],
528
530
  data["autopromptString"] if "autopromptString" in data else None,
531
+ data["autoDate"] if "autoDate" in data else None,
529
532
  data["resolvedSearchType"] if "resolvedSearchType" in data else None,
530
533
  )
531
534
 
@@ -742,6 +745,7 @@ class Exa:
742
745
  return SearchResponse(
743
746
  [Result(**to_snake_case(result)) for result in data["results"]],
744
747
  data["autopromptString"] if "autopromptString" in data else None,
748
+ data["autoDate"] if "autoDate" in data else None,
745
749
  data["resolvedSearchType"] if "resolvedSearchType" in data else None,
746
750
  )
747
751
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: exa_py
3
- Version: 1.0.18b1
3
+ Version: 1.1.1
4
4
  Summary: Python SDK for Exa API.
5
5
  Home-page: https://github.com/exa-labs/exa-py
6
6
  Author: Exa
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="exa_py",
5
- version="1.0.18b1",
5
+ version="1.1.1",
6
6
  description="Python SDK for Exa API.",
7
7
  long_description_content_type="text/markdown",
8
8
  long_description=open("README.md").read(),
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes