exa-py 1.14.18__py3-none-any.whl → 1.14.20__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
@@ -133,6 +133,7 @@ SEARCH_OPTIONS_TYPES = {
133
133
  "end_published_date": [
134
134
  str
135
135
  ], # Results before this publish date; excludes links with no date. ISO 8601 format.
136
+ "user_location": [str], # Two-letter ISO country code of the user (e.g. US).
136
137
  "include_text": [
137
138
  list
138
139
  ], # Must be present in webpage text. (One string, up to 5 words)
@@ -140,7 +141,7 @@ SEARCH_OPTIONS_TYPES = {
140
141
  list
141
142
  ], # Must not be present in webpage text. (One string, up to 5 words)
142
143
  "use_autoprompt": [bool], # Convert query to Exa. (Default: false)
143
- "type": [str], # 'keyword', 'neural', 'hybrid', or 'auto' (Default: auto)
144
+ "type": [str], # 'keyword', 'neural', 'hybrid', 'fast', or 'auto' (Default: auto)
144
145
  "category": [
145
146
  str
146
147
  ], # A data category to focus on: 'company', 'research paper', 'news', 'pdf', 'github', 'tweet', 'personal site', 'linkedin profile', 'financial report'
@@ -1236,6 +1237,7 @@ class Exa:
1236
1237
  category: Optional[str] = None,
1237
1238
  flags: Optional[List[str]] = None,
1238
1239
  moderation: Optional[bool] = None,
1240
+ user_location: Optional[str] = None,
1239
1241
  ) -> SearchResponse[_Result]:
1240
1242
  """Perform a search with a prompt-engineered query to retrieve relevant results.
1241
1243
 
@@ -1251,10 +1253,11 @@ class Exa:
1251
1253
  include_text (List[str], optional): Strings that must appear in the page text.
1252
1254
  exclude_text (List[str], optional): Strings that must not appear in the page text.
1253
1255
  use_autoprompt (bool, optional): Convert query to Exa (default False).
1254
- type (str, optional): 'keyword', 'neural', or 'hybrid' (default 'neural').
1256
+ type (str, optional): 'keyword', 'neural', 'hybrid', or 'fast' (default 'neural').
1255
1257
  category (str, optional): e.g. 'company'
1256
1258
  flags (List[str], optional): Experimental flags for Exa usage.
1257
1259
  moderation (bool, optional): If True, the search results will be moderated for safety.
1260
+ user_location (str, optional): Two-letter ISO country code of the user (e.g. US).
1258
1261
 
1259
1262
  Returns:
1260
1263
  SearchResponse: The response containing search results, etc.
@@ -1312,6 +1315,7 @@ class Exa:
1312
1315
  category: Optional[str] = None,
1313
1316
  flags: Optional[List[str]] = None,
1314
1317
  moderation: Optional[bool] = None,
1318
+ user_location: Optional[str] = None,
1315
1319
  livecrawl_timeout: Optional[int] = None,
1316
1320
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
1317
1321
  filter_empty_results: Optional[bool] = None,
@@ -1370,6 +1374,7 @@ class Exa:
1370
1374
  subpage_target: Optional[Union[str, List[str]]] = None,
1371
1375
  flags: Optional[List[str]] = None,
1372
1376
  moderation: Optional[bool] = None,
1377
+ user_location: Optional[str] = None,
1373
1378
  livecrawl_timeout: Optional[int] = None,
1374
1379
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
1375
1380
  filter_empty_results: Optional[bool] = None,
@@ -1399,6 +1404,7 @@ class Exa:
1399
1404
  subpage_target: Optional[Union[str, List[str]]] = None,
1400
1405
  flags: Optional[List[str]] = None,
1401
1406
  moderation: Optional[bool] = None,
1407
+ user_location: Optional[str] = None,
1402
1408
  livecrawl_timeout: Optional[int] = None,
1403
1409
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
1404
1410
  filter_empty_results: Optional[bool] = None,
@@ -1427,6 +1433,7 @@ class Exa:
1427
1433
  subpage_target: Optional[Union[str, List[str]]] = None,
1428
1434
  flags: Optional[List[str]] = None,
1429
1435
  moderation: Optional[bool] = None,
1436
+ user_location: Optional[str] = None,
1430
1437
  livecrawl_timeout: Optional[int] = None,
1431
1438
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
1432
1439
  filter_empty_results: Optional[bool] = None,
@@ -1456,6 +1463,7 @@ class Exa:
1456
1463
  subpage_target: Optional[Union[str, List[str]]] = None,
1457
1464
  flags: Optional[List[str]] = None,
1458
1465
  moderation: Optional[bool] = None,
1466
+ user_location: Optional[str] = None,
1459
1467
  livecrawl_timeout: Optional[int] = None,
1460
1468
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
1461
1469
  filter_empty_results: Optional[bool] = None,
@@ -1485,6 +1493,7 @@ class Exa:
1485
1493
  subpage_target: Optional[Union[str, List[str]]] = None,
1486
1494
  flags: Optional[List[str]] = None,
1487
1495
  moderation: Optional[bool] = None,
1496
+ user_location: Optional[str] = None,
1488
1497
  livecrawl_timeout: Optional[int] = None,
1489
1498
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
1490
1499
  filter_empty_results: Optional[bool] = None,
@@ -1513,6 +1522,7 @@ class Exa:
1513
1522
  category: Optional[str] = None,
1514
1523
  flags: Optional[List[str]] = None,
1515
1524
  moderation: Optional[bool] = None,
1525
+ user_location: Optional[str] = None,
1516
1526
  livecrawl_timeout: Optional[int] = None,
1517
1527
  livecrawl: Optional[LIVECRAWL_OPTIONS] = None,
1518
1528
  subpages: Optional[int] = None,
@@ -2448,6 +2458,7 @@ class AsyncExa(Exa):
2448
2458
  category: Optional[str] = None,
2449
2459
  flags: Optional[List[str]] = None,
2450
2460
  moderation: Optional[bool] = None,
2461
+ user_location: Optional[str] = None,
2451
2462
  ) -> SearchResponse[_Result]:
2452
2463
  """Perform a search with a prompt-engineered query to retrieve relevant results.
2453
2464
 
@@ -2463,10 +2474,11 @@ class AsyncExa(Exa):
2463
2474
  include_text (List[str], optional): Strings that must appear in the page text.
2464
2475
  exclude_text (List[str], optional): Strings that must not appear in the page text.
2465
2476
  use_autoprompt (bool, optional): Convert query to Exa (default False).
2466
- type (str, optional): 'keyword', 'neural', or 'hybrid' (default 'neural').
2477
+ type (str, optional): 'keyword', 'neural', 'hybrid', or 'fast' (default 'neural').
2467
2478
  category (str, optional): e.g. 'company'
2468
2479
  flags (List[str], optional): Experimental flags for Exa usage.
2469
2480
  moderation (bool, optional): If True, the search results will be moderated for safety.
2481
+ user_location (str, optional): Two-letter ISO country code of the user (e.g. US).
2470
2482
 
2471
2483
  Returns:
2472
2484
  SearchResponse: The response containing search results, etc.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: exa-py
3
- Version: 1.14.18
3
+ Version: 1.14.20
4
4
  Summary: Python SDK for Exa API.
5
5
  License: MIT
6
6
  Author: Exa AI
@@ -1,5 +1,5 @@
1
1
  exa_py/__init__.py,sha256=M2GC9oSdoV6m2msboW0vMWWl8wrth4o6gmEV4MYLGG8,66
2
- exa_py/api.py,sha256=S2GfFiUSQrogwqSWqQvN2w6wb4yrbZAmgERI6NntjSQ,106657
2
+ exa_py/api.py,sha256=TIGTu4ITw7SrhTZjx9uQNpwi1u3nDpjtYUNXQrgg5bo,107356
3
3
  exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  exa_py/research/__init__.py,sha256=QeY-j6bP4QP5tF9ytX0IeQhJvd0Wn4cJCD69U8pP7kA,271
5
5
  exa_py/research/client.py,sha256=mnoTA4Qoa0TA5d8nVTR9tAU9LJElXV-MlPozgMxlUp4,12799
@@ -27,6 +27,6 @@ exa_py/websets/searches/client.py,sha256=X3f7axWGfecmxf-2tBTX0Yf_--xToz1X8ZHbbud
27
27
  exa_py/websets/types.py,sha256=DxO_T4Ijnd06gxFAX3f238Mt5P0_ulpY44M1kiT4y4U,47120
28
28
  exa_py/websets/webhooks/__init__.py,sha256=iTPBCxFd73z4RifLQMX6iRECx_6pwlI5qscLNjMOUHE,77
29
29
  exa_py/websets/webhooks/client.py,sha256=zS1eoWKliuiY4AIeFJdpAlPZeOINyphn7KEWANF-zaE,4384
30
- exa_py-1.14.18.dist-info/METADATA,sha256=CCJmZE-pPrWCzNvK9JJ709FwCVtHIlltGfzXdxYhsLI,3827
31
- exa_py-1.14.18.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
32
- exa_py-1.14.18.dist-info/RECORD,,
30
+ exa_py-1.14.20.dist-info/METADATA,sha256=tkmcVljW6I0gOgd6uLMTkMXLnmJLQOSVJmeoxLW3tQw,3827
31
+ exa_py-1.14.20.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
32
+ exa_py-1.14.20.dist-info/RECORD,,