exa-py 1.16.0__tar.gz → 1.16.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.

Files changed (37) hide show
  1. {exa_py-1.16.0 → exa_py-1.16.1}/PKG-INFO +1 -1
  2. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/research/async_client.py +2 -1
  3. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/research/models.py +6 -2
  4. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/research/sync_client.py +5 -4
  5. {exa_py-1.16.0 → exa_py-1.16.1}/pyproject.toml +1 -1
  6. {exa_py-1.16.0 → exa_py-1.16.1}/README.md +0 -0
  7. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/__init__.py +0 -0
  8. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/api.py +0 -0
  9. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/py.typed +0 -0
  10. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/research/__init__.py +0 -0
  11. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/research/base.py +0 -0
  12. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/research/utils.py +0 -0
  13. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/utils.py +0 -0
  14. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/__init__.py +0 -0
  15. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/_generator/pydantic/BaseModel.jinja2 +0 -0
  16. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/async_client.py +0 -0
  17. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/client.py +0 -0
  18. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/core/__init__.py +0 -0
  19. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/core/async_base.py +0 -0
  20. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/core/base.py +0 -0
  21. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/enrichments/__init__.py +0 -0
  22. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/enrichments/client.py +0 -0
  23. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/events/__init__.py +0 -0
  24. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/events/client.py +0 -0
  25. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/imports/__init__.py +0 -0
  26. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/imports/client.py +0 -0
  27. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/items/__init__.py +0 -0
  28. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/items/client.py +0 -0
  29. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/monitors/__init__.py +0 -0
  30. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/monitors/client.py +0 -0
  31. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/monitors/runs/__init__.py +0 -0
  32. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/monitors/runs/client.py +0 -0
  33. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/searches/__init__.py +0 -0
  34. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/searches/client.py +0 -0
  35. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/types.py +0 -0
  36. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/webhooks/__init__.py +0 -0
  37. {exa_py-1.16.0 → exa_py-1.16.1}/exa_py/websets/webhooks/client.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: exa-py
3
- Version: 1.16.0
3
+ Version: 1.16.1
4
4
  Summary: Python SDK for Exa API.
5
5
  License: MIT
6
6
  Author: Exa AI
@@ -23,6 +23,7 @@ from .models import (
23
23
  ResearchDto,
24
24
  ResearchEvent,
25
25
  ListResearchResponseDto,
26
+ ResearchModel,
26
27
  )
27
28
  from .utils import (
28
29
  async_stream_sse_events,
@@ -64,7 +65,7 @@ class AsyncResearchClient(AsyncResearchBaseClient):
64
65
  self,
65
66
  *,
66
67
  instructions: str,
67
- model: Literal["exa-research", "exa-research-pro"] = "exa-research",
68
+ model: ResearchModel = "exa-research-fast",
68
69
  ) -> ResearchDto: ...
69
70
 
70
71
  @overload
@@ -5,6 +5,9 @@ from typing import Annotated, Any, Dict, List, Literal, Optional, Union
5
5
  from pydantic import BaseModel, Field, RootModel
6
6
 
7
7
 
8
+ ResearchModel = Literal["exa-research-fast", "exa-research", "exa-research-pro"]
9
+
10
+
8
11
  class CostDollars(BaseModel):
9
12
  total: float
10
13
  num_pages: Annotated[float, Field(alias="numPages")]
@@ -191,7 +194,7 @@ class ResearchBaseDto(BaseModel):
191
194
  float, Field(alias="createdAt", description="Milliseconds since epoch time")
192
195
  ]
193
196
  model: Annotated[
194
- Literal["exa-research", "exa-research-pro"],
197
+ ResearchModel,
195
198
  Field(description="The model used for the research request"),
196
199
  ] = "exa-research"
197
200
  instructions: Annotated[
@@ -273,7 +276,7 @@ class ListResearchResponseDto(BaseModel):
273
276
 
274
277
 
275
278
  class ResearchCreateRequestDto(BaseModel):
276
- model: Literal["exa-research", "exa-research-pro"] = "exa-research"
279
+ model: ResearchModel = "exa-research"
277
280
  instructions: Annotated[
278
281
  str,
279
282
  Field(
@@ -313,6 +316,7 @@ __all__ = [
313
316
  "ResearchTaskOutput",
314
317
  "ResearchTaskOutputEvent",
315
318
  "ResearchMetaEvent",
319
+ "ResearchModel",
316
320
  "ResearchPlanEvent",
317
321
  "ResearchTaskEvent",
318
322
  "ResearchEvent",
@@ -23,6 +23,7 @@ from .models import (
23
23
  ResearchDto,
24
24
  ResearchEvent,
25
25
  ListResearchResponseDto,
26
+ ResearchModel,
26
27
  )
27
28
  from .utils import (
28
29
  is_pydantic_model,
@@ -63,7 +64,7 @@ class ResearchClient(ResearchBaseClient):
63
64
  self,
64
65
  *,
65
66
  instructions: str,
66
- model: Literal["exa-research", "exa-research-pro"] = "exa-research",
67
+ model: ResearchModel = "exa-research-fast",
67
68
  ) -> ResearchDto: ...
68
69
 
69
70
  @overload
@@ -71,7 +72,7 @@ class ResearchClient(ResearchBaseClient):
71
72
  self,
72
73
  *,
73
74
  instructions: str,
74
- model: Literal["exa-research", "exa-research-pro"] = "exa-research",
75
+ model: ResearchModel = "exa-research-fast",
75
76
  output_schema: Dict[str, Any],
76
77
  ) -> ResearchDto: ...
77
78
 
@@ -80,7 +81,7 @@ class ResearchClient(ResearchBaseClient):
80
81
  self,
81
82
  *,
82
83
  instructions: str,
83
- model: Literal["exa-research", "exa-research-pro"] = "exa-research",
84
+ model: ResearchModel = "exa-research-fast",
84
85
  output_schema: Type[T],
85
86
  ) -> ResearchDto: ...
86
87
 
@@ -88,7 +89,7 @@ class ResearchClient(ResearchBaseClient):
88
89
  self,
89
90
  *,
90
91
  instructions: str,
91
- model: Literal["exa-research", "exa-research-pro"] = "exa-research",
92
+ model: ResearchModel = "exa-research-fast",
92
93
  output_schema: Optional[Union[Dict[str, Any], Type[BaseModel]]] = None,
93
94
  ) -> ResearchDto:
94
95
  """Create a new research request.
@@ -24,7 +24,7 @@ build-backend = "poetry.core.masonry.api"
24
24
 
25
25
  [project]
26
26
  name = "exa-py"
27
- version = "1.16.0"
27
+ version = "1.16.1"
28
28
  description = "Python SDK for Exa API."
29
29
  readme = "README.md"
30
30
  requires-python = ">=3.9"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes