exa-py 1.1.0__tar.gz → 1.1.2__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.1.0
3
+ Version: 1.1.2
4
4
  Summary: Python SDK for Exa API.
5
5
  Home-page: https://github.com/exa-labs/exa-py
6
6
  Author: Exa
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: exa_py
3
- Version: 1.1.0
3
+ Version: 1.1.2
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.1.0",
5
+ version="1.1.2",
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