athena-intelligence 0.1.90__tar.gz → 0.1.92__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 (92) hide show
  1. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/PKG-INFO +1 -1
  2. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/pyproject.toml +1 -1
  3. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/core/client_wrapper.py +1 -1
  4. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/document.py +13 -1
  5. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/llm_model.py +4 -0
  6. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/model.py +4 -0
  7. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/tools.py +4 -0
  8. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/README.md +0 -0
  9. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/__init__.py +0 -0
  10. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/base_client.py +0 -0
  11. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/chain/__init__.py +0 -0
  12. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/chain/client.py +2 -2
  13. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/client.py +0 -0
  14. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/core/__init__.py +0 -0
  15. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/core/api_error.py +0 -0
  16. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/core/datetime_utils.py +0 -0
  17. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/core/file.py +0 -0
  18. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/core/http_client.py +0 -0
  19. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/core/jsonable_encoder.py +0 -0
  20. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/core/pydantic_utilities.py +0 -0
  21. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/core/query_encoder.py +0 -0
  22. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/core/remove_none_from_dict.py +0 -0
  23. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/core/request_options.py +0 -0
  24. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/dataset/__init__.py +0 -0
  25. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/dataset/client.py +0 -0
  26. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/environment.py +0 -0
  27. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/errors/__init__.py +0 -0
  28. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/errors/internal_server_error.py +0 -0
  29. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/errors/not_found_error.py +0 -0
  30. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/errors/unprocessable_entity_error.py +0 -0
  31. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/errors/unsupported_media_type_error.py +0 -0
  32. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/message/__init__.py +0 -0
  33. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/message/client.py +0 -0
  34. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/polling_message_client.py +0 -0
  35. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/py.typed +0 -0
  36. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/query/__init__.py +0 -0
  37. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/query/client.py +0 -0
  38. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/report/__init__.py +0 -0
  39. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/report/client.py +0 -0
  40. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/search/__init__.py +0 -0
  41. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/search/client.py +0 -0
  42. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/snippet/__init__.py +0 -0
  43. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/snippet/client.py +0 -0
  44. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/tools/__init__.py +0 -0
  45. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/tools/client.py +0 -0
  46. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/tools/types/__init__.py +0 -0
  47. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/tools/types/tools_data_frame_request_columns_item.py +0 -0
  48. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/__init__.py +0 -0
  49. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/athena_document_v_2_out.py +0 -0
  50. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/convert_pdf_to_sheet_out.py +0 -0
  51. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/data_frame_parsing_error.py +0 -0
  52. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/data_frame_request_out.py +0 -0
  53. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/data_frame_request_out_columns_item.py +0 -0
  54. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/data_frame_request_out_data_item_item.py +0 -0
  55. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/data_frame_request_out_index_item.py +0 -0
  56. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/data_frame_unknown_format_error.py +0 -0
  57. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/dataset.py +0 -0
  58. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/excecute_tool_first_workflow_out.py +0 -0
  59. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/file_data_response.py +0 -0
  60. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/file_fetch_error.py +0 -0
  61. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/filter_model.py +0 -0
  62. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/filter_operator.py +0 -0
  63. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/firecrawl_scrape_url_data_reponse_dto.py +0 -0
  64. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/firecrawl_scrape_url_metadata.py +0 -0
  65. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/get_datasets_response.py +0 -0
  66. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/get_snippet_out.py +0 -0
  67. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/get_snippets_response.py +0 -0
  68. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/http_validation_error.py +0 -0
  69. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/langchain_documents_request_out.py +0 -0
  70. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/map_reduce_chain_out.py +0 -0
  71. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/message_out.py +0 -0
  72. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/message_out_dto.py +0 -0
  73. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/publish_formats.py +0 -0
  74. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/query_model.py +0 -0
  75. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/report.py +0 -0
  76. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/researcher_out.py +0 -0
  77. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/semantic_query_out.py +0 -0
  78. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/snippet.py +0 -0
  79. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/sql_results.py +0 -0
  80. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/status_enum.py +0 -0
  81. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/structured_parse_result.py +0 -0
  82. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/time_dimension_model.py +0 -0
  83. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/upload_documents_out.py +0 -0
  84. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/url_result.py +0 -0
  85. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/validation_error.py +0 -0
  86. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/validation_error_loc_item.py +0 -0
  87. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/types/workflow_status_out.py +0 -0
  88. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/upload/__init__.py +0 -0
  89. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/upload/client.py +0 -0
  90. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/version.py +0 -0
  91. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/workflow/__init__.py +0 -0
  92. {athena_intelligence-0.1.90 → athena_intelligence-0.1.92}/src/athena/workflow/client.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: athena-intelligence
3
- Version: 0.1.90
3
+ Version: 0.1.92
4
4
  Summary: Athena Intelligence Python Library
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "athena-intelligence"
3
- version = "0.1.90"
3
+ version = "0.1.92"
4
4
  description = "Athena Intelligence Python Library"
5
5
  readme = "README.md"
6
6
  authors = []
@@ -17,7 +17,7 @@ class BaseClientWrapper:
17
17
  headers: typing.Dict[str, str] = {
18
18
  "X-Fern-Language": "Python",
19
19
  "X-Fern-SDK-Name": "athena-intelligence",
20
- "X-Fern-SDK-Version": "0.1.90",
20
+ "X-Fern-SDK-Version": "0.1.92",
21
21
  }
22
22
  headers["X-API-KEY"] = self.api_key
23
23
  return headers
@@ -10,10 +10,22 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
10
10
  class Document(pydantic_v1.BaseModel):
11
11
  """
12
12
  Class for storing a piece of text and associated metadata.
13
+
14
+ Example:
15
+
16
+ .. code-block:: python
17
+
18
+ from langchain_core.documents import Document
19
+
20
+ document = Document(
21
+ page_content="Hello, world!",
22
+ metadata={"source": "https://example.com"}
23
+ )
13
24
  """
14
25
 
15
- page_content: str
26
+ id: typing.Optional[str] = None
16
27
  metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
28
+ page_content: str
17
29
  type: typing.Optional[typing.Literal["Document"]] = None
18
30
 
19
31
  def json(self, **kwargs: typing.Any) -> str:
@@ -16,6 +16,7 @@ class LlmModel(str, enum.Enum):
16
16
  GPT_4_TURBO_PREVIEW = "gpt-4-turbo-preview"
17
17
  GPT_4_O_MINI = "gpt-4o-mini"
18
18
  GPT_4_O = "gpt-4o"
19
+ GPT_4_O_20240806 = "gpt-4o-2024-08-06"
19
20
  GPT_4 = "gpt-4"
20
21
  MIXTRAL_SMALL_8_X_7_B_0211 = "mixtral-small-8x7b-0211"
21
22
  MISTRAL_LARGE_0224 = "mistral-large-0224"
@@ -49,6 +50,7 @@ class LlmModel(str, enum.Enum):
49
50
  gpt_4_turbo_preview: typing.Callable[[], T_Result],
50
51
  gpt_4_o_mini: typing.Callable[[], T_Result],
51
52
  gpt_4_o: typing.Callable[[], T_Result],
53
+ gpt_4_o_20240806: typing.Callable[[], T_Result],
52
54
  gpt_4: typing.Callable[[], T_Result],
53
55
  mixtral_small_8_x_7_b_0211: typing.Callable[[], T_Result],
54
56
  mistral_large_0224: typing.Callable[[], T_Result],
@@ -85,6 +87,8 @@ class LlmModel(str, enum.Enum):
85
87
  return gpt_4_o_mini()
86
88
  if self is LlmModel.GPT_4_O:
87
89
  return gpt_4_o()
90
+ if self is LlmModel.GPT_4_O_20240806:
91
+ return gpt_4_o_20240806()
88
92
  if self is LlmModel.GPT_4:
89
93
  return gpt_4()
90
94
  if self is LlmModel.MIXTRAL_SMALL_8_X_7_B_0211:
@@ -17,6 +17,7 @@ class Model(str, enum.Enum):
17
17
  GPT_4 = "gpt-4"
18
18
  GPT_4_O = "gpt-4o"
19
19
  GPT_4_O_MINI = "gpt-4o-mini"
20
+ GPT_4_O_20240806 = "gpt-4o-2024-08-06"
20
21
  MIXTRAL_SMALL_8_X_7_B_0211 = "mixtral-small-8x7b-0211"
21
22
  MISTRAL_LARGE_0224 = "mistral-large-0224"
22
23
  MIXTRAL_8_X_22_B_INSTRUCT = "mixtral-8x22b-instruct"
@@ -38,6 +39,7 @@ class Model(str, enum.Enum):
38
39
  gpt_4: typing.Callable[[], T_Result],
39
40
  gpt_4_o: typing.Callable[[], T_Result],
40
41
  gpt_4_o_mini: typing.Callable[[], T_Result],
42
+ gpt_4_o_20240806: typing.Callable[[], T_Result],
41
43
  mixtral_small_8_x_7_b_0211: typing.Callable[[], T_Result],
42
44
  mistral_large_0224: typing.Callable[[], T_Result],
43
45
  mixtral_8_x_22_b_instruct: typing.Callable[[], T_Result],
@@ -63,6 +65,8 @@ class Model(str, enum.Enum):
63
65
  return gpt_4_o()
64
66
  if self is Model.GPT_4_O_MINI:
65
67
  return gpt_4_o_mini()
68
+ if self is Model.GPT_4_O_20240806:
69
+ return gpt_4_o_20240806()
66
70
  if self is Model.MIXTRAL_SMALL_8_X_7_B_0211:
67
71
  return mixtral_small_8_x_7_b_0211()
68
72
  if self is Model.MISTRAL_LARGE_0224:
@@ -20,6 +20,7 @@ class Tools(str, enum.Enum):
20
20
  ENRICH_PERSON = "enrich_person"
21
21
  ENRICH_COMPANY = "enrich_company"
22
22
  BROWSERBASE = "browserbase"
23
+ CODE_EXECUTION = "code_execution"
23
24
 
24
25
  def visit(
25
26
  self,
@@ -32,6 +33,7 @@ class Tools(str, enum.Enum):
32
33
  enrich_person: typing.Callable[[], T_Result],
33
34
  enrich_company: typing.Callable[[], T_Result],
34
35
  browserbase: typing.Callable[[], T_Result],
36
+ code_execution: typing.Callable[[], T_Result],
35
37
  ) -> T_Result:
36
38
  if self is Tools.SEARCH:
37
39
  return search()
@@ -51,3 +53,5 @@ class Tools(str, enum.Enum):
51
53
  return enrich_company()
52
54
  if self is Tools.BROWSERBASE:
53
55
  return browserbase()
56
+ if self is Tools.CODE_EXECUTION:
57
+ return code_execution()
@@ -124,8 +124,8 @@ class ChainClient:
124
124
  client.chain.map_reduce_chain(
125
125
  documents=[
126
126
  Document(
127
- page_content="Athena is an AI-native analytics platform and artificial employee built to accelerate analytics workflows by offering enterprise teams co-pilot and auto-pilot modes. Athena learns your workflow as a co-pilot, allowing you to hand over controls to her for autonomous execution with confidence.",
128
127
  metadata={"key": "value"},
128
+ page_content="Athena is an AI-native analytics platform and artificial employee built to accelerate analytics workflows by offering enterprise teams co-pilot and auto-pilot modes. Athena learns your workflow as a co-pilot, allowing you to hand over controls to her for autonomous execution with confidence.",
129
129
  )
130
130
  ],
131
131
  model=LlmModel.MISTRAL_LARGE_0224,
@@ -266,8 +266,8 @@ class AsyncChainClient:
266
266
  await client.chain.map_reduce_chain(
267
267
  documents=[
268
268
  Document(
269
- page_content="Athena is an AI-native analytics platform and artificial employee built to accelerate analytics workflows by offering enterprise teams co-pilot and auto-pilot modes. Athena learns your workflow as a co-pilot, allowing you to hand over controls to her for autonomous execution with confidence.",
270
269
  metadata={"key": "value"},
270
+ page_content="Athena is an AI-native analytics platform and artificial employee built to accelerate analytics workflows by offering enterprise teams co-pilot and auto-pilot modes. Athena learns your workflow as a co-pilot, allowing you to hand over controls to her for autonomous execution with confidence.",
271
271
  )
272
272
  ],
273
273
  model=LlmModel.MISTRAL_LARGE_0224,