athena-intelligence 0.1.332__tar.gz → 0.1.399__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 athena-intelligence might be problematic. Click here for more details.

Files changed (154) hide show
  1. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/PKG-INFO +1 -1
  2. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/pyproject.toml +1 -1
  3. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/__init__.py +3 -0
  4. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/core/client_wrapper.py +2 -2
  5. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/__init__.py +3 -0
  6. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/client.py +0 -10
  7. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/raw_client.py +0 -8
  8. athena_intelligence-0.1.399/src/athena/tools/tasks/__init__.py +34 -0
  9. athena_intelligence-0.1.399/src/athena/tools/tasks/client.py +148 -0
  10. athena_intelligence-0.1.399/src/athena/tools/tasks/raw_client.py +170 -0
  11. athena_intelligence-0.1.399/src/athena/tools/tasks/types/__init__.py +34 -0
  12. athena_intelligence-0.1.399/src/athena/tools/tasks/types/run_task_request_task_type.py +5 -0
  13. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/__init__.py +3 -0
  14. athena_intelligence-0.1.399/src/athena/types/run_task_response.py +46 -0
  15. athena_intelligence-0.1.332/src/athena/tools/tasks/__init__.py +0 -4
  16. athena_intelligence-0.1.332/src/athena/tools/tasks/client.py +0 -99
  17. athena_intelligence-0.1.332/src/athena/tools/tasks/raw_client.py +0 -96
  18. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/README.md +0 -0
  19. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/agents/__init__.py +0 -0
  20. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/agents/client.py +0 -0
  21. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/agents/drive/__init__.py +0 -0
  22. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/agents/drive/client.py +0 -0
  23. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/agents/drive/raw_client.py +0 -0
  24. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/agents/general/__init__.py +0 -0
  25. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/agents/general/client.py +0 -0
  26. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/agents/general/raw_client.py +0 -0
  27. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/agents/raw_client.py +0 -0
  28. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/agents/research/__init__.py +0 -0
  29. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/agents/research/client.py +0 -0
  30. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/agents/research/raw_client.py +0 -0
  31. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/agents/sql/__init__.py +0 -0
  32. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/agents/sql/client.py +0 -0
  33. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/agents/sql/raw_client.py +0 -0
  34. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/aop/__init__.py +0 -0
  35. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/aop/client.py +0 -0
  36. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/aop/raw_client.py +0 -0
  37. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/assets/__init__.py +0 -0
  38. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/assets/client.py +0 -0
  39. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/assets/raw_client.py +0 -0
  40. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/base_client.py +0 -0
  41. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/client.py +0 -0
  42. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/core/__init__.py +0 -0
  43. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/core/api_error.py +0 -0
  44. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/core/datetime_utils.py +0 -0
  45. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/core/file.py +0 -0
  46. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/core/force_multipart.py +0 -0
  47. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/core/http_client.py +0 -0
  48. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/core/http_response.py +0 -0
  49. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/core/jsonable_encoder.py +0 -0
  50. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/core/pydantic_utilities.py +0 -0
  51. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/core/query_encoder.py +0 -0
  52. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/core/remove_none_from_dict.py +0 -0
  53. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/core/request_options.py +0 -0
  54. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/core/serialization.py +0 -0
  55. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/environment.py +0 -0
  56. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/errors/__init__.py +0 -0
  57. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/errors/bad_request_error.py +0 -0
  58. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/errors/content_too_large_error.py +0 -0
  59. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/errors/internal_server_error.py +0 -0
  60. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/errors/not_found_error.py +0 -0
  61. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/errors/unauthorized_error.py +0 -0
  62. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/errors/unprocessable_entity_error.py +0 -0
  63. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/errors/unsupported_media_type_error.py +0 -0
  64. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/py.typed +0 -0
  65. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/query/__init__.py +0 -0
  66. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/query/client.py +0 -0
  67. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/query/raw_client.py +0 -0
  68. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/query/types/__init__.py +0 -0
  69. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/query/types/query_execute_request_database_asset_ids.py +0 -0
  70. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/threads/__init__.py +0 -0
  71. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/threads/client.py +0 -0
  72. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/threads/raw_client.py +0 -0
  73. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/calendar/__init__.py +0 -0
  74. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/calendar/client.py +0 -0
  75. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/calendar/raw_client.py +0 -0
  76. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/email/__init__.py +0 -0
  77. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/email/client.py +0 -0
  78. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/email/raw_client.py +0 -0
  79. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/sheets/__init__.py +0 -0
  80. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/sheets/client.py +0 -0
  81. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/sheets/raw_client.py +0 -0
  82. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/sheets/types/__init__.py +0 -0
  83. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/sheets/types/update_sheet_range_request_values_item_item.py +0 -0
  84. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/structured_data_extractor/__init__.py +0 -0
  85. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/structured_data_extractor/client.py +0 -0
  86. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/structured_data_extractor/raw_client.py +0 -0
  87. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/types/__init__.py +0 -0
  88. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/tools/types/tools_data_frame_request_columns_item.py +0 -0
  89. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/aop_async_execute_response_out.py +0 -0
  90. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/aop_execute_request_in.py +0 -0
  91. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/aop_execute_response_out.py +0 -0
  92. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/asset_content_request_out.py +0 -0
  93. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/asset_node.py +0 -0
  94. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/asset_screenshot_response_out.py +0 -0
  95. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/border_model.py +0 -0
  96. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/border_style.py +0 -0
  97. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/borders_model.py +0 -0
  98. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/cell_format.py +0 -0
  99. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/cell_format_horizontal_alignment.py +0 -0
  100. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/cell_format_vertical_alignment.py +0 -0
  101. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/chunk.py +0 -0
  102. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/chunk_content_item.py +0 -0
  103. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/chunk_result.py +0 -0
  104. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/chunk_result_chunk_id.py +0 -0
  105. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/content.py +0 -0
  106. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/conversation_asset_info.py +0 -0
  107. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/conversation_message.py +0 -0
  108. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/conversation_result.py +0 -0
  109. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/creatable_asset_type.py +0 -0
  110. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/create_asset_response_out.py +0 -0
  111. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/create_new_sheet_tab_response.py +0 -0
  112. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/create_project_response_out.py +0 -0
  113. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/custom_agent_response.py +0 -0
  114. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/data_frame_request_out.py +0 -0
  115. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/data_frame_request_out_columns_item.py +0 -0
  116. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/data_frame_request_out_data_item_item.py +0 -0
  117. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/data_frame_request_out_index_item.py +0 -0
  118. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/data_frame_unknown_format_error.py +0 -0
  119. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/dimension_properties.py +0 -0
  120. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/drive_agent_response.py +0 -0
  121. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/file_too_large_error.py +0 -0
  122. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/folder_response.py +0 -0
  123. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/general_agent_config.py +0 -0
  124. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/general_agent_config_enabled_tools_item.py +0 -0
  125. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/general_agent_request.py +0 -0
  126. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/general_agent_response.py +0 -0
  127. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/general_agent_response_message.py +0 -0
  128. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/general_agent_response_message_kwargs.py +0 -0
  129. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/get_table_response.py +0 -0
  130. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/grid_range.py +0 -0
  131. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/id.py +0 -0
  132. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/image_url_content.py +0 -0
  133. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/input_message.py +0 -0
  134. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/input_message_content_item.py +0 -0
  135. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/number_format_model.py +0 -0
  136. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/number_format_type.py +0 -0
  137. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/paginated_assets_out.py +0 -0
  138. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/prompt_message.py +0 -0
  139. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/public_asset_out.py +0 -0
  140. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/research_agent_response.py +0 -0
  141. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/save_asset_request_out.py +0 -0
  142. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/sheet.py +0 -0
  143. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/sheet_operation_response.py +0 -0
  144. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/sql_agent_response.py +0 -0
  145. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/structured_data_extractor_response.py +0 -0
  146. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/table_row_data.py +0 -0
  147. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/text_content.py +0 -0
  148. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/text_format_model.py +0 -0
  149. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/textrotation.py +0 -0
  150. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/theme_color.py +0 -0
  151. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/thread_status_response_out.py +0 -0
  152. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/type.py +0 -0
  153. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/types/wrap_strategy.py +0 -0
  154. {athena_intelligence-0.1.332 → athena_intelligence-0.1.399}/src/athena/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: athena-intelligence
3
- Version: 0.1.332
3
+ Version: 0.1.399
4
4
  Summary: Athena Intelligence Python Library
5
5
  Requires-Python: >=3.9,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -3,7 +3,7 @@ name = "athena-intelligence"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "athena-intelligence"
6
- version = "0.1.332"
6
+ version = "0.1.399"
7
7
  description = "Athena Intelligence Python Library"
8
8
  readme = "README.md"
9
9
  authors = []
@@ -63,6 +63,7 @@ if typing.TYPE_CHECKING:
63
63
  PromptMessage,
64
64
  PublicAssetOut,
65
65
  ResearchAgentResponse,
66
+ RunTaskResponse,
66
67
  SaveAssetRequestOut,
67
68
  Sheet,
68
69
  SheetOperationResponse,
@@ -157,6 +158,7 @@ _dynamic_imports: typing.Dict[str, str] = {
157
158
  "PublicAssetOut": ".types",
158
159
  "QueryExecuteRequestDatabaseAssetIds": ".query",
159
160
  "ResearchAgentResponse": ".types",
161
+ "RunTaskResponse": ".types",
160
162
  "SaveAssetRequestOut": ".types",
161
163
  "Sheet": ".types",
162
164
  "SheetOperationResponse": ".types",
@@ -270,6 +272,7 @@ __all__ = [
270
272
  "PublicAssetOut",
271
273
  "QueryExecuteRequestDatabaseAssetIds",
272
274
  "ResearchAgentResponse",
275
+ "RunTaskResponse",
273
276
  "SaveAssetRequestOut",
274
277
  "Sheet",
275
278
  "SheetOperationResponse",
@@ -22,10 +22,10 @@ class BaseClientWrapper:
22
22
 
23
23
  def get_headers(self) -> typing.Dict[str, str]:
24
24
  headers: typing.Dict[str, str] = {
25
- "User-Agent": "athena-intelligence/0.1.332",
25
+ "User-Agent": "athena-intelligence/0.1.399",
26
26
  "X-Fern-Language": "Python",
27
27
  "X-Fern-SDK-Name": "athena-intelligence",
28
- "X-Fern-SDK-Version": "0.1.332",
28
+ "X-Fern-SDK-Version": "0.1.399",
29
29
  **(self.get_custom_headers() or {}),
30
30
  }
31
31
  headers["X-API-KEY"] = self.api_key
@@ -9,7 +9,9 @@ if typing.TYPE_CHECKING:
9
9
  from .types import ToolsDataFrameRequestColumnsItem
10
10
  from . import calendar, email, sheets, structured_data_extractor, tasks
11
11
  from .sheets import UpdateSheetRangeRequestValuesItemItem
12
+ from .tasks import RunTaskRequestTaskType
12
13
  _dynamic_imports: typing.Dict[str, str] = {
14
+ "RunTaskRequestTaskType": ".tasks",
13
15
  "ToolsDataFrameRequestColumnsItem": ".types",
14
16
  "UpdateSheetRangeRequestValuesItemItem": ".sheets",
15
17
  "calendar": ".calendar",
@@ -42,6 +44,7 @@ def __dir__():
42
44
 
43
45
 
44
46
  __all__ = [
47
+ "RunTaskRequestTaskType",
45
48
  "ToolsDataFrameRequestColumnsItem",
46
49
  "UpdateSheetRangeRequestValuesItemItem",
47
50
  "calendar",
@@ -159,7 +159,6 @@ class ToolsClient:
159
159
  self,
160
160
  *,
161
161
  asset_id: typing.Optional[str] = None,
162
- folder_id: typing.Optional[str] = None,
163
162
  include_asset_details: typing.Optional[bool] = None,
164
163
  include_system_files: typing.Optional[bool] = None,
165
164
  request_options: typing.Optional[RequestOptions] = None,
@@ -171,8 +170,6 @@ class ToolsClient:
171
170
  ----------
172
171
  asset_id : typing.Optional[str]
173
172
 
174
- folder_id : typing.Optional[str]
175
-
176
173
  include_asset_details : typing.Optional[bool]
177
174
 
178
175
  include_system_files : typing.Optional[bool]
@@ -194,14 +191,12 @@ class ToolsClient:
194
191
  )
195
192
  client.tools.list_contents(
196
193
  asset_id="asset_id",
197
- folder_id="folder_id",
198
194
  include_asset_details=True,
199
195
  include_system_files=True,
200
196
  )
201
197
  """
202
198
  _response = self._raw_client.list_contents(
203
199
  asset_id=asset_id,
204
- folder_id=folder_id,
205
200
  include_asset_details=include_asset_details,
206
201
  include_system_files=include_system_files,
207
202
  request_options=request_options,
@@ -544,7 +539,6 @@ class AsyncToolsClient:
544
539
  self,
545
540
  *,
546
541
  asset_id: typing.Optional[str] = None,
547
- folder_id: typing.Optional[str] = None,
548
542
  include_asset_details: typing.Optional[bool] = None,
549
543
  include_system_files: typing.Optional[bool] = None,
550
544
  request_options: typing.Optional[RequestOptions] = None,
@@ -556,8 +550,6 @@ class AsyncToolsClient:
556
550
  ----------
557
551
  asset_id : typing.Optional[str]
558
552
 
559
- folder_id : typing.Optional[str]
560
-
561
553
  include_asset_details : typing.Optional[bool]
562
554
 
563
555
  include_system_files : typing.Optional[bool]
@@ -584,7 +576,6 @@ class AsyncToolsClient:
584
576
  async def main() -> None:
585
577
  await client.tools.list_contents(
586
578
  asset_id="asset_id",
587
- folder_id="folder_id",
588
579
  include_asset_details=True,
589
580
  include_system_files=True,
590
581
  )
@@ -594,7 +585,6 @@ class AsyncToolsClient:
594
585
  """
595
586
  _response = await self._raw_client.list_contents(
596
587
  asset_id=asset_id,
597
- folder_id=folder_id,
598
588
  include_asset_details=include_asset_details,
599
589
  include_system_files=include_system_files,
600
590
  request_options=request_options,
@@ -285,7 +285,6 @@ class RawToolsClient:
285
285
  self,
286
286
  *,
287
287
  asset_id: typing.Optional[str] = None,
288
- folder_id: typing.Optional[str] = None,
289
288
  include_asset_details: typing.Optional[bool] = None,
290
289
  include_system_files: typing.Optional[bool] = None,
291
290
  request_options: typing.Optional[RequestOptions] = None,
@@ -297,8 +296,6 @@ class RawToolsClient:
297
296
  ----------
298
297
  asset_id : typing.Optional[str]
299
298
 
300
- folder_id : typing.Optional[str]
301
-
302
299
  include_asset_details : typing.Optional[bool]
303
300
 
304
301
  include_system_files : typing.Optional[bool]
@@ -316,7 +313,6 @@ class RawToolsClient:
316
313
  method="GET",
317
314
  params={
318
315
  "asset_id": asset_id,
319
- "folder_id": folder_id,
320
316
  "include_asset_details": include_asset_details,
321
317
  "include_system_files": include_system_files,
322
318
  },
@@ -934,7 +930,6 @@ class AsyncRawToolsClient:
934
930
  self,
935
931
  *,
936
932
  asset_id: typing.Optional[str] = None,
937
- folder_id: typing.Optional[str] = None,
938
933
  include_asset_details: typing.Optional[bool] = None,
939
934
  include_system_files: typing.Optional[bool] = None,
940
935
  request_options: typing.Optional[RequestOptions] = None,
@@ -946,8 +941,6 @@ class AsyncRawToolsClient:
946
941
  ----------
947
942
  asset_id : typing.Optional[str]
948
943
 
949
- folder_id : typing.Optional[str]
950
-
951
944
  include_asset_details : typing.Optional[bool]
952
945
 
953
946
  include_system_files : typing.Optional[bool]
@@ -965,7 +958,6 @@ class AsyncRawToolsClient:
965
958
  method="GET",
966
959
  params={
967
960
  "asset_id": asset_id,
968
- "folder_id": folder_id,
969
961
  "include_asset_details": include_asset_details,
970
962
  "include_system_files": include_system_files,
971
963
  },
@@ -0,0 +1,34 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ import typing
6
+ from importlib import import_module
7
+
8
+ if typing.TYPE_CHECKING:
9
+ from .types import RunTaskRequestTaskType
10
+ _dynamic_imports: typing.Dict[str, str] = {"RunTaskRequestTaskType": ".types"}
11
+
12
+
13
+ def __getattr__(attr_name: str) -> typing.Any:
14
+ module_name = _dynamic_imports.get(attr_name)
15
+ if module_name is None:
16
+ raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
17
+ try:
18
+ module = import_module(module_name, __package__)
19
+ if module_name == f".{attr_name}":
20
+ return module
21
+ else:
22
+ return getattr(module, attr_name)
23
+ except ImportError as e:
24
+ raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
25
+ except AttributeError as e:
26
+ raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
27
+
28
+
29
+ def __dir__():
30
+ lazy_attrs = list(_dynamic_imports.keys())
31
+ return sorted(lazy_attrs)
32
+
33
+
34
+ __all__ = ["RunTaskRequestTaskType"]
@@ -0,0 +1,148 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
6
+ from ...core.request_options import RequestOptions
7
+ from ...types.run_task_response import RunTaskResponse
8
+ from .raw_client import AsyncRawTasksClient, RawTasksClient
9
+ from .types.run_task_request_task_type import RunTaskRequestTaskType
10
+
11
+ # this is used as the default value for optional parameters
12
+ OMIT = typing.cast(typing.Any, ...)
13
+
14
+
15
+ class TasksClient:
16
+ def __init__(self, *, client_wrapper: SyncClientWrapper):
17
+ self._raw_client = RawTasksClient(client_wrapper=client_wrapper)
18
+
19
+ @property
20
+ def with_raw_response(self) -> RawTasksClient:
21
+ """
22
+ Retrieves a raw implementation of this client that returns raw responses.
23
+
24
+ Returns
25
+ -------
26
+ RawTasksClient
27
+ """
28
+ return self._raw_client
29
+
30
+ def run_task(
31
+ self,
32
+ *,
33
+ task_id: str,
34
+ arguments: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
35
+ task_type: typing.Optional[RunTaskRequestTaskType] = OMIT,
36
+ request_options: typing.Optional[RequestOptions] = None,
37
+ ) -> RunTaskResponse:
38
+ """
39
+ Run a [task](https://resources.athenaintel.com/docs/task-studio/home) and wait for the result.
40
+
41
+ Executes a Windmill script or flow synchronously. Server handles polling internally.
42
+
43
+ Parameters
44
+ ----------
45
+ task_id : str
46
+ The unique identifier (path) of the task. Example: 'f/public/databricks_describe_table'
47
+
48
+ arguments : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
49
+ Arguments to pass to the task
50
+
51
+ task_type : typing.Optional[RunTaskRequestTaskType]
52
+ Type: 'script' or 'flow'
53
+
54
+ request_options : typing.Optional[RequestOptions]
55
+ Request-specific configuration.
56
+
57
+ Returns
58
+ -------
59
+ RunTaskResponse
60
+ Successful Response
61
+
62
+ Examples
63
+ --------
64
+ from athena import Athena
65
+
66
+ client = Athena(
67
+ api_key="YOUR_API_KEY",
68
+ )
69
+ client.tools.tasks.run_task(
70
+ task_id="task_id",
71
+ )
72
+ """
73
+ _response = self._raw_client.run_task(
74
+ task_id=task_id, arguments=arguments, task_type=task_type, request_options=request_options
75
+ )
76
+ return _response.data
77
+
78
+
79
+ class AsyncTasksClient:
80
+ def __init__(self, *, client_wrapper: AsyncClientWrapper):
81
+ self._raw_client = AsyncRawTasksClient(client_wrapper=client_wrapper)
82
+
83
+ @property
84
+ def with_raw_response(self) -> AsyncRawTasksClient:
85
+ """
86
+ Retrieves a raw implementation of this client that returns raw responses.
87
+
88
+ Returns
89
+ -------
90
+ AsyncRawTasksClient
91
+ """
92
+ return self._raw_client
93
+
94
+ async def run_task(
95
+ self,
96
+ *,
97
+ task_id: str,
98
+ arguments: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
99
+ task_type: typing.Optional[RunTaskRequestTaskType] = OMIT,
100
+ request_options: typing.Optional[RequestOptions] = None,
101
+ ) -> RunTaskResponse:
102
+ """
103
+ Run a [task](https://resources.athenaintel.com/docs/task-studio/home) and wait for the result.
104
+
105
+ Executes a Windmill script or flow synchronously. Server handles polling internally.
106
+
107
+ Parameters
108
+ ----------
109
+ task_id : str
110
+ The unique identifier (path) of the task. Example: 'f/public/databricks_describe_table'
111
+
112
+ arguments : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
113
+ Arguments to pass to the task
114
+
115
+ task_type : typing.Optional[RunTaskRequestTaskType]
116
+ Type: 'script' or 'flow'
117
+
118
+ request_options : typing.Optional[RequestOptions]
119
+ Request-specific configuration.
120
+
121
+ Returns
122
+ -------
123
+ RunTaskResponse
124
+ Successful Response
125
+
126
+ Examples
127
+ --------
128
+ import asyncio
129
+
130
+ from athena import AsyncAthena
131
+
132
+ client = AsyncAthena(
133
+ api_key="YOUR_API_KEY",
134
+ )
135
+
136
+
137
+ async def main() -> None:
138
+ await client.tools.tasks.run_task(
139
+ task_id="task_id",
140
+ )
141
+
142
+
143
+ asyncio.run(main())
144
+ """
145
+ _response = await self._raw_client.run_task(
146
+ task_id=task_id, arguments=arguments, task_type=task_type, request_options=request_options
147
+ )
148
+ return _response.data
@@ -0,0 +1,170 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from json.decoder import JSONDecodeError
5
+
6
+ from ...core.api_error import ApiError
7
+ from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
8
+ from ...core.http_response import AsyncHttpResponse, HttpResponse
9
+ from ...core.pydantic_utilities import parse_obj_as
10
+ from ...core.request_options import RequestOptions
11
+ from ...errors.unprocessable_entity_error import UnprocessableEntityError
12
+ from ...types.run_task_response import RunTaskResponse
13
+ from .types.run_task_request_task_type import RunTaskRequestTaskType
14
+
15
+ # this is used as the default value for optional parameters
16
+ OMIT = typing.cast(typing.Any, ...)
17
+
18
+
19
+ class RawTasksClient:
20
+ def __init__(self, *, client_wrapper: SyncClientWrapper):
21
+ self._client_wrapper = client_wrapper
22
+
23
+ def run_task(
24
+ self,
25
+ *,
26
+ task_id: str,
27
+ arguments: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
28
+ task_type: typing.Optional[RunTaskRequestTaskType] = OMIT,
29
+ request_options: typing.Optional[RequestOptions] = None,
30
+ ) -> HttpResponse[RunTaskResponse]:
31
+ """
32
+ Run a [task](https://resources.athenaintel.com/docs/task-studio/home) and wait for the result.
33
+
34
+ Executes a Windmill script or flow synchronously. Server handles polling internally.
35
+
36
+ Parameters
37
+ ----------
38
+ task_id : str
39
+ The unique identifier (path) of the task. Example: 'f/public/databricks_describe_table'
40
+
41
+ arguments : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
42
+ Arguments to pass to the task
43
+
44
+ task_type : typing.Optional[RunTaskRequestTaskType]
45
+ Type: 'script' or 'flow'
46
+
47
+ request_options : typing.Optional[RequestOptions]
48
+ Request-specific configuration.
49
+
50
+ Returns
51
+ -------
52
+ HttpResponse[RunTaskResponse]
53
+ Successful Response
54
+ """
55
+ _response = self._client_wrapper.httpx_client.request(
56
+ "api/v0/tools/tasks/run",
57
+ method="POST",
58
+ json={
59
+ "arguments": arguments,
60
+ "task_id": task_id,
61
+ "task_type": task_type,
62
+ },
63
+ headers={
64
+ "content-type": "application/json",
65
+ },
66
+ request_options=request_options,
67
+ omit=OMIT,
68
+ )
69
+ try:
70
+ if 200 <= _response.status_code < 300:
71
+ _data = typing.cast(
72
+ RunTaskResponse,
73
+ parse_obj_as(
74
+ type_=RunTaskResponse, # type: ignore
75
+ object_=_response.json(),
76
+ ),
77
+ )
78
+ return HttpResponse(response=_response, data=_data)
79
+ if _response.status_code == 422:
80
+ raise UnprocessableEntityError(
81
+ headers=dict(_response.headers),
82
+ body=typing.cast(
83
+ typing.Optional[typing.Any],
84
+ parse_obj_as(
85
+ type_=typing.Optional[typing.Any], # type: ignore
86
+ object_=_response.json(),
87
+ ),
88
+ ),
89
+ )
90
+ _response_json = _response.json()
91
+ except JSONDecodeError:
92
+ raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
93
+ raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
94
+
95
+
96
+ class AsyncRawTasksClient:
97
+ def __init__(self, *, client_wrapper: AsyncClientWrapper):
98
+ self._client_wrapper = client_wrapper
99
+
100
+ async def run_task(
101
+ self,
102
+ *,
103
+ task_id: str,
104
+ arguments: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
105
+ task_type: typing.Optional[RunTaskRequestTaskType] = OMIT,
106
+ request_options: typing.Optional[RequestOptions] = None,
107
+ ) -> AsyncHttpResponse[RunTaskResponse]:
108
+ """
109
+ Run a [task](https://resources.athenaintel.com/docs/task-studio/home) and wait for the result.
110
+
111
+ Executes a Windmill script or flow synchronously. Server handles polling internally.
112
+
113
+ Parameters
114
+ ----------
115
+ task_id : str
116
+ The unique identifier (path) of the task. Example: 'f/public/databricks_describe_table'
117
+
118
+ arguments : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
119
+ Arguments to pass to the task
120
+
121
+ task_type : typing.Optional[RunTaskRequestTaskType]
122
+ Type: 'script' or 'flow'
123
+
124
+ request_options : typing.Optional[RequestOptions]
125
+ Request-specific configuration.
126
+
127
+ Returns
128
+ -------
129
+ AsyncHttpResponse[RunTaskResponse]
130
+ Successful Response
131
+ """
132
+ _response = await self._client_wrapper.httpx_client.request(
133
+ "api/v0/tools/tasks/run",
134
+ method="POST",
135
+ json={
136
+ "arguments": arguments,
137
+ "task_id": task_id,
138
+ "task_type": task_type,
139
+ },
140
+ headers={
141
+ "content-type": "application/json",
142
+ },
143
+ request_options=request_options,
144
+ omit=OMIT,
145
+ )
146
+ try:
147
+ if 200 <= _response.status_code < 300:
148
+ _data = typing.cast(
149
+ RunTaskResponse,
150
+ parse_obj_as(
151
+ type_=RunTaskResponse, # type: ignore
152
+ object_=_response.json(),
153
+ ),
154
+ )
155
+ return AsyncHttpResponse(response=_response, data=_data)
156
+ if _response.status_code == 422:
157
+ raise UnprocessableEntityError(
158
+ headers=dict(_response.headers),
159
+ body=typing.cast(
160
+ typing.Optional[typing.Any],
161
+ parse_obj_as(
162
+ type_=typing.Optional[typing.Any], # type: ignore
163
+ object_=_response.json(),
164
+ ),
165
+ ),
166
+ )
167
+ _response_json = _response.json()
168
+ except JSONDecodeError:
169
+ raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
170
+ raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
@@ -0,0 +1,34 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ import typing
6
+ from importlib import import_module
7
+
8
+ if typing.TYPE_CHECKING:
9
+ from .run_task_request_task_type import RunTaskRequestTaskType
10
+ _dynamic_imports: typing.Dict[str, str] = {"RunTaskRequestTaskType": ".run_task_request_task_type"}
11
+
12
+
13
+ def __getattr__(attr_name: str) -> typing.Any:
14
+ module_name = _dynamic_imports.get(attr_name)
15
+ if module_name is None:
16
+ raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
17
+ try:
18
+ module = import_module(module_name, __package__)
19
+ if module_name == f".{attr_name}":
20
+ return module
21
+ else:
22
+ return getattr(module, attr_name)
23
+ except ImportError as e:
24
+ raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
25
+ except AttributeError as e:
26
+ raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
27
+
28
+
29
+ def __dir__():
30
+ lazy_attrs = list(_dynamic_imports.keys())
31
+ return sorted(lazy_attrs)
32
+
33
+
34
+ __all__ = ["RunTaskRequestTaskType"]
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ RunTaskRequestTaskType = typing.Union[typing.Literal["script", "flow"], typing.Any]
@@ -62,6 +62,7 @@ if typing.TYPE_CHECKING:
62
62
  from .prompt_message import PromptMessage
63
63
  from .public_asset_out import PublicAssetOut
64
64
  from .research_agent_response import ResearchAgentResponse
65
+ from .run_task_response import RunTaskResponse
65
66
  from .save_asset_request_out import SaveAssetRequestOut
66
67
  from .sheet import Sheet
67
68
  from .sheet_operation_response import SheetOperationResponse
@@ -132,6 +133,7 @@ _dynamic_imports: typing.Dict[str, str] = {
132
133
  "PromptMessage": ".prompt_message",
133
134
  "PublicAssetOut": ".public_asset_out",
134
135
  "ResearchAgentResponse": ".research_agent_response",
136
+ "RunTaskResponse": ".run_task_response",
135
137
  "SaveAssetRequestOut": ".save_asset_request_out",
136
138
  "Sheet": ".sheet",
137
139
  "SheetOperationResponse": ".sheet_operation_response",
@@ -226,6 +228,7 @@ __all__ = [
226
228
  "PromptMessage",
227
229
  "PublicAssetOut",
228
230
  "ResearchAgentResponse",
231
+ "RunTaskResponse",
229
232
  "SaveAssetRequestOut",
230
233
  "Sheet",
231
234
  "SheetOperationResponse",
@@ -0,0 +1,46 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ import pydantic
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7
+
8
+
9
+ class RunTaskResponse(UniversalBaseModel):
10
+ """
11
+ Response model for task execution.
12
+ """
13
+
14
+ error: typing.Optional[str] = pydantic.Field(default=None)
15
+ """
16
+ Error message if failed
17
+ """
18
+
19
+ error_type: typing.Optional[str] = pydantic.Field(default=None)
20
+ """
21
+ Error type: 'timeout', 'execution_error', 'not_found', 'validation_error'
22
+ """
23
+
24
+ job_id: typing.Optional[str] = pydantic.Field(default=None)
25
+ """
26
+ Windmill job ID for debugging
27
+ """
28
+
29
+ result: typing.Optional[typing.Optional[typing.Any]] = pydantic.Field(default=None)
30
+ """
31
+ The task result
32
+ """
33
+
34
+ success: bool = pydantic.Field()
35
+ """
36
+ Whether execution succeeded
37
+ """
38
+
39
+ if IS_PYDANTIC_V2:
40
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
41
+ else:
42
+
43
+ class Config:
44
+ frozen = True
45
+ smart_union = True
46
+ extra = pydantic.Extra.allow
@@ -1,4 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- # isort: skip_file
4
-