athena-intelligence 0.1.41__tar.gz → 0.1.42__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.
Files changed (61) hide show
  1. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/PKG-INFO +1 -1
  2. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/pyproject.toml +1 -1
  3. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/__init__.py +2 -0
  4. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/client_wrapper.py +1 -1
  5. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/tools/client.py +15 -8
  6. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/__init__.py +2 -0
  7. athena_intelligence-0.1.42/src/athena/types/tool_models.py +49 -0
  8. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/README.md +0 -0
  9. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/base_client.py +0 -0
  10. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/chain/__init__.py +0 -0
  11. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/chain/client.py +0 -0
  12. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/chain/types/__init__.py +0 -0
  13. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/chain/types/structured_parse_in_parsing_model.py +0 -0
  14. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/client.py +0 -0
  15. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/__init__.py +0 -0
  16. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/api_error.py +0 -0
  17. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/datetime_utils.py +0 -0
  18. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/file.py +0 -0
  19. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/http_client.py +0 -0
  20. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/jsonable_encoder.py +0 -0
  21. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/remove_none_from_dict.py +0 -0
  22. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/request_options.py +0 -0
  23. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/dataset/__init__.py +0 -0
  24. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/dataset/client.py +0 -0
  25. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/environment.py +0 -0
  26. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/errors/__init__.py +0 -0
  27. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/errors/unprocessable_entity_error.py +0 -0
  28. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/message/__init__.py +0 -0
  29. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/message/client.py +0 -0
  30. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/polling_message_client.py +0 -0
  31. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/py.typed +0 -0
  32. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/query/__init__.py +0 -0
  33. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/query/client.py +0 -0
  34. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/report/__init__.py +0 -0
  35. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/report/client.py +0 -0
  36. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/search/__init__.py +0 -0
  37. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/search/client.py +0 -0
  38. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/snippet/__init__.py +0 -0
  39. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/snippet/client.py +0 -0
  40. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/tools/__init__.py +0 -0
  41. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/dataset.py +0 -0
  42. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/document.py +0 -0
  43. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/excecute_tool_first_workflow_out.py +0 -0
  44. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/firecrawl_scrape_url_data_reponse_dto.py +0 -0
  45. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/firecrawl_scrape_url_metadata.py +0 -0
  46. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/get_datasets_response.py +0 -0
  47. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/get_snippets_response.py +0 -0
  48. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/http_validation_error.py +0 -0
  49. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/langchain_documents_request_out.py +0 -0
  50. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/message_out.py +0 -0
  51. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/message_out_dto.py +0 -0
  52. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/model.py +0 -0
  53. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/report.py +0 -0
  54. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/snippet.py +0 -0
  55. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/sql_results.py +0 -0
  56. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/status_enum.py +0 -0
  57. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/structured_parse_result.py +0 -0
  58. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/tools.py +0 -0
  59. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/url_result.py +0 -0
  60. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/validation_error.py +0 -0
  61. {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/validation_error_loc_item.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: athena-intelligence
3
- Version: 0.1.41
3
+ Version: 0.1.42
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "athena-intelligence"
3
- version = "0.1.41"
3
+ version = "0.1.42"
4
4
  description = ""
5
5
  readme = "README.md"
6
6
  authors = []
@@ -18,6 +18,7 @@ from .types import (
18
18
  SqlResults,
19
19
  StatusEnum,
20
20
  StructuredParseResult,
21
+ ToolModels,
21
22
  Tools,
22
23
  UrlResult,
23
24
  ValidationError,
@@ -48,6 +49,7 @@ __all__ = [
48
49
  "StatusEnum",
49
50
  "StructuredParseInParsingModel",
50
51
  "StructuredParseResult",
52
+ "ToolModels",
51
53
  "Tools",
52
54
  "UnprocessableEntityError",
53
55
  "UrlResult",
@@ -16,7 +16,7 @@ class BaseClientWrapper:
16
16
  headers: typing.Dict[str, str] = {
17
17
  "X-Fern-Language": "Python",
18
18
  "X-Fern-SDK-Name": "athena-intelligence",
19
- "X-Fern-SDK-Version": "0.1.41",
19
+ "X-Fern-SDK-Version": "0.1.42",
20
20
  }
21
21
  headers["X-API-KEY"] = self.api_key
22
22
  return headers
@@ -14,6 +14,7 @@ from ..types.excecute_tool_first_workflow_out import ExcecuteToolFirstWorkflowOu
14
14
  from ..types.firecrawl_scrape_url_data_reponse_dto import FirecrawlScrapeUrlDataReponseDto
15
15
  from ..types.http_validation_error import HttpValidationError
16
16
  from ..types.langchain_documents_request_out import LangchainDocumentsRequestOut
17
+ from ..types.tool_models import ToolModels
17
18
 
18
19
  try:
19
20
  import pydantic.v1 as pydantic # type: ignore
@@ -164,7 +165,7 @@ class ToolsClient:
164
165
  def tool_first_workflow(
165
166
  self,
166
167
  *,
167
- model_name: str,
168
+ model: typing.Optional[ToolModels] = OMIT,
168
169
  tool_name: str,
169
170
  content: str,
170
171
  tool_kwargs: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
@@ -172,7 +173,7 @@ class ToolsClient:
172
173
  ) -> ExcecuteToolFirstWorkflowOut:
173
174
  """
174
175
  Parameters:
175
- - model_name: str.
176
+ - model: typing.Optional[ToolModels].
176
177
 
177
178
  - tool_name: str.
178
179
 
@@ -182,19 +183,22 @@ class ToolsClient:
182
183
 
183
184
  - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
184
185
  ---
186
+ from athena import ToolModels
185
187
  from athena.client import Athena
186
188
 
187
189
  client = Athena(
188
190
  api_key="YOUR_API_KEY",
189
191
  )
190
192
  client.tools.tool_first_workflow(
191
- model_name="gpt-3.5-turbo",
193
+ model=ToolModels.MISTRAL_LARGE_0224,
192
194
  tool_name="tavily_search",
193
195
  content="summarize the website in one paragraph",
194
196
  tool_kwargs={"query": "website: www.athenaintelligence.ai"},
195
197
  )
196
198
  """
197
- _request: typing.Dict[str, typing.Any] = {"model_name": model_name, "tool_name": tool_name, "content": content}
199
+ _request: typing.Dict[str, typing.Any] = {"tool_name": tool_name, "content": content}
200
+ if model is not OMIT:
201
+ _request["model"] = model
198
202
  if tool_kwargs is not OMIT:
199
203
  _request["tool_kwargs"] = tool_kwargs
200
204
  _response = self._client_wrapper.httpx_client.request(
@@ -374,7 +378,7 @@ class AsyncToolsClient:
374
378
  async def tool_first_workflow(
375
379
  self,
376
380
  *,
377
- model_name: str,
381
+ model: typing.Optional[ToolModels] = OMIT,
378
382
  tool_name: str,
379
383
  content: str,
380
384
  tool_kwargs: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
@@ -382,7 +386,7 @@ class AsyncToolsClient:
382
386
  ) -> ExcecuteToolFirstWorkflowOut:
383
387
  """
384
388
  Parameters:
385
- - model_name: str.
389
+ - model: typing.Optional[ToolModels].
386
390
 
387
391
  - tool_name: str.
388
392
 
@@ -392,19 +396,22 @@ class AsyncToolsClient:
392
396
 
393
397
  - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
394
398
  ---
399
+ from athena import ToolModels
395
400
  from athena.client import AsyncAthena
396
401
 
397
402
  client = AsyncAthena(
398
403
  api_key="YOUR_API_KEY",
399
404
  )
400
405
  await client.tools.tool_first_workflow(
401
- model_name="gpt-3.5-turbo",
406
+ model=ToolModels.MISTRAL_LARGE_0224,
402
407
  tool_name="tavily_search",
403
408
  content="summarize the website in one paragraph",
404
409
  tool_kwargs={"query": "website: www.athenaintelligence.ai"},
405
410
  )
406
411
  """
407
- _request: typing.Dict[str, typing.Any] = {"model_name": model_name, "tool_name": tool_name, "content": content}
412
+ _request: typing.Dict[str, typing.Any] = {"tool_name": tool_name, "content": content}
413
+ if model is not OMIT:
414
+ _request["model"] = model
408
415
  if tool_kwargs is not OMIT:
409
416
  _request["tool_kwargs"] = tool_kwargs
410
417
  _response = await self._client_wrapper.httpx_client.request(
@@ -17,6 +17,7 @@ from .snippet import Snippet
17
17
  from .sql_results import SqlResults
18
18
  from .status_enum import StatusEnum
19
19
  from .structured_parse_result import StructuredParseResult
20
+ from .tool_models import ToolModels
20
21
  from .tools import Tools
21
22
  from .url_result import UrlResult
22
23
  from .validation_error import ValidationError
@@ -40,6 +41,7 @@ __all__ = [
40
41
  "SqlResults",
41
42
  "StatusEnum",
42
43
  "StructuredParseResult",
44
+ "ToolModels",
43
45
  "Tools",
44
46
  "UrlResult",
45
47
  "ValidationError",
@@ -0,0 +1,49 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import enum
4
+ import typing
5
+
6
+ T_Result = typing.TypeVar("T_Result")
7
+
8
+
9
+ class ToolModels(str, enum.Enum):
10
+ """
11
+ An enumeration.
12
+ """
13
+
14
+ GPT_4_TURBO = "gpt-4-turbo"
15
+ GPT_4_TURBO_PREVIEW = "gpt-4-turbo-preview"
16
+ GPT_4 = "gpt-4"
17
+ MIXTRAL_SMALL_8_X_7_B_0211 = "mixtral-small-8x7b-0211"
18
+ MISTRAL_LARGE_0224 = "mistral-large-0224"
19
+ CLAUDE_3_OPUS_20240229 = "claude-3-opus-20240229"
20
+ CLAUDE_3_SONNET_20240229 = "claude-3-sonnet-20240229"
21
+ CLAUDE_3_HAIKU_20240307 = "claude-3-haiku-20240307"
22
+
23
+ def visit(
24
+ self,
25
+ gpt_4_turbo: typing.Callable[[], T_Result],
26
+ gpt_4_turbo_preview: typing.Callable[[], T_Result],
27
+ gpt_4: typing.Callable[[], T_Result],
28
+ mixtral_small_8_x_7_b_0211: typing.Callable[[], T_Result],
29
+ mistral_large_0224: typing.Callable[[], T_Result],
30
+ claude_3_opus_20240229: typing.Callable[[], T_Result],
31
+ claude_3_sonnet_20240229: typing.Callable[[], T_Result],
32
+ claude_3_haiku_20240307: typing.Callable[[], T_Result],
33
+ ) -> T_Result:
34
+ if self is ToolModels.GPT_4_TURBO:
35
+ return gpt_4_turbo()
36
+ if self is ToolModels.GPT_4_TURBO_PREVIEW:
37
+ return gpt_4_turbo_preview()
38
+ if self is ToolModels.GPT_4:
39
+ return gpt_4()
40
+ if self is ToolModels.MIXTRAL_SMALL_8_X_7_B_0211:
41
+ return mixtral_small_8_x_7_b_0211()
42
+ if self is ToolModels.MISTRAL_LARGE_0224:
43
+ return mistral_large_0224()
44
+ if self is ToolModels.CLAUDE_3_OPUS_20240229:
45
+ return claude_3_opus_20240229()
46
+ if self is ToolModels.CLAUDE_3_SONNET_20240229:
47
+ return claude_3_sonnet_20240229()
48
+ if self is ToolModels.CLAUDE_3_HAIKU_20240307:
49
+ return claude_3_haiku_20240307()