athena-intelligence 0.1.227__py3-none-any.whl → 0.1.357__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 athena-intelligence might be problematic. Click here for more details.
- athena/__init__.py +223 -69
- athena/agents/__init__.py +33 -1
- athena/agents/client.py +81 -18
- athena/aop/client.py +2 -2
- athena/aop/raw_client.py +2 -2
- athena/assets/client.py +359 -2
- athena/assets/raw_client.py +562 -0
- athena/base_client.py +118 -18
- athena/client.py +23 -21
- athena/core/__init__.py +73 -20
- athena/core/client_wrapper.py +2 -2
- athena/core/force_multipart.py +4 -2
- athena/core/http_response.py +1 -1
- athena/core/pydantic_utilities.py +5 -2
- athena/environment.py +0 -2
- athena/errors/__init__.py +42 -7
- athena/query/__init__.py +28 -1
- athena/query/types/__init__.py +30 -1
- athena/tools/__init__.py +39 -4
- athena/tools/client.py +161 -31
- athena/tools/raw_client.py +12 -9
- athena/tools/sheets/__init__.py +29 -2
- athena/tools/sheets/client.py +66 -101
- athena/tools/sheets/raw_client.py +66 -93
- athena/tools/sheets/types/__init__.py +31 -2
- athena/tools/sheets/types/{insert_table_row_request_row_data_item_value.py → update_sheet_range_request_values_item_item.py} +1 -1
- athena/tools/types/__init__.py +28 -1
- athena/types/__init__.py +187 -52
- athena/types/aop_execute_response_out.py +2 -1
- athena/types/border_model.py +32 -0
- athena/types/border_style.py +7 -0
- athena/types/borders_model.py +58 -0
- athena/types/cell_format.py +60 -0
- athena/types/cell_format_horizontal_alignment.py +5 -0
- athena/types/cell_format_vertical_alignment.py +5 -0
- athena/types/conversation_asset_info.py +8 -2
- athena/types/conversation_message.py +42 -0
- athena/types/conversation_result.py +67 -0
- athena/types/creatable_asset_type.py +5 -0
- athena/types/create_asset_response_out.py +46 -0
- athena/types/create_project_response_out.py +51 -0
- athena/types/dimension_properties.py +49 -0
- athena/types/grid_range.py +39 -0
- athena/types/{file_chunk_request_out.py → number_format_model.py} +8 -4
- athena/types/number_format_type.py +21 -0
- athena/types/sheet.py +83 -0
- athena/types/table_row_data.py +5 -0
- athena/types/text_format_model.py +37 -0
- athena/types/textrotation.py +5 -0
- athena/types/{document_chunk.py → theme_color.py} +3 -7
- athena/types/thread_status_response_out.py +5 -0
- athena/types/wrap_strategy.py +5 -0
- {athena_intelligence-0.1.227.dist-info → athena_intelligence-0.1.357.dist-info}/METADATA +1 -1
- {athena_intelligence-0.1.227.dist-info → athena_intelligence-0.1.357.dist-info}/RECORD +55 -36
- {athena_intelligence-0.1.227.dist-info → athena_intelligence-0.1.357.dist-info}/WHEEL +0 -0
athena/__init__.py
CHANGED
|
@@ -2,73 +2,208 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .types import (
|
|
10
|
+
AopAsyncExecuteResponseOut,
|
|
11
|
+
AopExecuteRequestIn,
|
|
12
|
+
AopExecuteResponseOut,
|
|
13
|
+
AssetContentRequestOut,
|
|
14
|
+
AssetNode,
|
|
15
|
+
AssetScreenshotResponseOut,
|
|
16
|
+
BorderModel,
|
|
17
|
+
BorderStyle,
|
|
18
|
+
BordersModel,
|
|
19
|
+
CellFormat,
|
|
20
|
+
CellFormatHorizontalAlignment,
|
|
21
|
+
CellFormatVerticalAlignment,
|
|
22
|
+
Chunk,
|
|
23
|
+
ChunkContentItem,
|
|
24
|
+
ChunkContentItem_ImageUrl,
|
|
25
|
+
ChunkContentItem_Text,
|
|
26
|
+
ChunkResult,
|
|
27
|
+
ChunkResultChunkId,
|
|
28
|
+
Content,
|
|
29
|
+
ConversationAssetInfo,
|
|
30
|
+
ConversationMessage,
|
|
31
|
+
ConversationResult,
|
|
32
|
+
CreatableAssetType,
|
|
33
|
+
CreateAssetResponseOut,
|
|
34
|
+
CreateNewSheetTabResponse,
|
|
35
|
+
CreateProjectResponseOut,
|
|
36
|
+
CustomAgentResponse,
|
|
37
|
+
DataFrameRequestOut,
|
|
38
|
+
DataFrameRequestOutColumnsItem,
|
|
39
|
+
DataFrameRequestOutDataItemItem,
|
|
40
|
+
DataFrameRequestOutIndexItem,
|
|
41
|
+
DataFrameUnknownFormatError,
|
|
42
|
+
DimensionProperties,
|
|
43
|
+
DriveAgentResponse,
|
|
44
|
+
FileTooLargeError,
|
|
45
|
+
FolderResponse,
|
|
46
|
+
GeneralAgentConfig,
|
|
47
|
+
GeneralAgentConfigEnabledToolsItem,
|
|
48
|
+
GeneralAgentRequest,
|
|
49
|
+
GeneralAgentResponse,
|
|
50
|
+
GeneralAgentResponseMessage,
|
|
51
|
+
GeneralAgentResponseMessageKwargs,
|
|
52
|
+
GetTableResponse,
|
|
53
|
+
GridRange,
|
|
54
|
+
Id,
|
|
55
|
+
ImageUrlContent,
|
|
56
|
+
InputMessage,
|
|
57
|
+
InputMessageContentItem,
|
|
58
|
+
InputMessageContentItem_ImageUrl,
|
|
59
|
+
InputMessageContentItem_Text,
|
|
60
|
+
NumberFormatModel,
|
|
61
|
+
NumberFormatType,
|
|
62
|
+
PaginatedAssetsOut,
|
|
63
|
+
PromptMessage,
|
|
64
|
+
PublicAssetOut,
|
|
65
|
+
ResearchAgentResponse,
|
|
66
|
+
SaveAssetRequestOut,
|
|
67
|
+
Sheet,
|
|
68
|
+
SheetOperationResponse,
|
|
69
|
+
SqlAgentResponse,
|
|
70
|
+
StructuredDataExtractorResponse,
|
|
71
|
+
TableRowData,
|
|
72
|
+
TextContent,
|
|
73
|
+
TextFormatModel,
|
|
74
|
+
Textrotation,
|
|
75
|
+
ThemeColor,
|
|
76
|
+
ThreadStatusResponseOut,
|
|
77
|
+
Type,
|
|
78
|
+
WrapStrategy,
|
|
79
|
+
)
|
|
80
|
+
from .errors import (
|
|
81
|
+
BadRequestError,
|
|
82
|
+
ContentTooLargeError,
|
|
83
|
+
InternalServerError,
|
|
84
|
+
NotFoundError,
|
|
85
|
+
UnauthorizedError,
|
|
86
|
+
UnprocessableEntityError,
|
|
87
|
+
UnsupportedMediaTypeError,
|
|
88
|
+
)
|
|
89
|
+
from . import agents, aop, assets, query, threads, tools
|
|
90
|
+
from .client import AsyncAthena, Athena
|
|
91
|
+
from .environment import AthenaEnvironment
|
|
92
|
+
from .query import QueryExecuteRequestDatabaseAssetIds
|
|
93
|
+
from .tools import ToolsDataFrameRequestColumnsItem
|
|
94
|
+
from .version import __version__
|
|
95
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
96
|
+
"AopAsyncExecuteResponseOut": ".types",
|
|
97
|
+
"AopExecuteRequestIn": ".types",
|
|
98
|
+
"AopExecuteResponseOut": ".types",
|
|
99
|
+
"AssetContentRequestOut": ".types",
|
|
100
|
+
"AssetNode": ".types",
|
|
101
|
+
"AssetScreenshotResponseOut": ".types",
|
|
102
|
+
"AsyncAthena": ".client",
|
|
103
|
+
"Athena": ".client",
|
|
104
|
+
"AthenaEnvironment": ".environment",
|
|
105
|
+
"BadRequestError": ".errors",
|
|
106
|
+
"BorderModel": ".types",
|
|
107
|
+
"BorderStyle": ".types",
|
|
108
|
+
"BordersModel": ".types",
|
|
109
|
+
"CellFormat": ".types",
|
|
110
|
+
"CellFormatHorizontalAlignment": ".types",
|
|
111
|
+
"CellFormatVerticalAlignment": ".types",
|
|
112
|
+
"Chunk": ".types",
|
|
113
|
+
"ChunkContentItem": ".types",
|
|
114
|
+
"ChunkContentItem_ImageUrl": ".types",
|
|
115
|
+
"ChunkContentItem_Text": ".types",
|
|
116
|
+
"ChunkResult": ".types",
|
|
117
|
+
"ChunkResultChunkId": ".types",
|
|
118
|
+
"Content": ".types",
|
|
119
|
+
"ContentTooLargeError": ".errors",
|
|
120
|
+
"ConversationAssetInfo": ".types",
|
|
121
|
+
"ConversationMessage": ".types",
|
|
122
|
+
"ConversationResult": ".types",
|
|
123
|
+
"CreatableAssetType": ".types",
|
|
124
|
+
"CreateAssetResponseOut": ".types",
|
|
125
|
+
"CreateNewSheetTabResponse": ".types",
|
|
126
|
+
"CreateProjectResponseOut": ".types",
|
|
127
|
+
"CustomAgentResponse": ".types",
|
|
128
|
+
"DataFrameRequestOut": ".types",
|
|
129
|
+
"DataFrameRequestOutColumnsItem": ".types",
|
|
130
|
+
"DataFrameRequestOutDataItemItem": ".types",
|
|
131
|
+
"DataFrameRequestOutIndexItem": ".types",
|
|
132
|
+
"DataFrameUnknownFormatError": ".types",
|
|
133
|
+
"DimensionProperties": ".types",
|
|
134
|
+
"DriveAgentResponse": ".types",
|
|
135
|
+
"FileTooLargeError": ".types",
|
|
136
|
+
"FolderResponse": ".types",
|
|
137
|
+
"GeneralAgentConfig": ".types",
|
|
138
|
+
"GeneralAgentConfigEnabledToolsItem": ".types",
|
|
139
|
+
"GeneralAgentRequest": ".types",
|
|
140
|
+
"GeneralAgentResponse": ".types",
|
|
141
|
+
"GeneralAgentResponseMessage": ".types",
|
|
142
|
+
"GeneralAgentResponseMessageKwargs": ".types",
|
|
143
|
+
"GetTableResponse": ".types",
|
|
144
|
+
"GridRange": ".types",
|
|
145
|
+
"Id": ".types",
|
|
146
|
+
"ImageUrlContent": ".types",
|
|
147
|
+
"InputMessage": ".types",
|
|
148
|
+
"InputMessageContentItem": ".types",
|
|
149
|
+
"InputMessageContentItem_ImageUrl": ".types",
|
|
150
|
+
"InputMessageContentItem_Text": ".types",
|
|
151
|
+
"InternalServerError": ".errors",
|
|
152
|
+
"NotFoundError": ".errors",
|
|
153
|
+
"NumberFormatModel": ".types",
|
|
154
|
+
"NumberFormatType": ".types",
|
|
155
|
+
"PaginatedAssetsOut": ".types",
|
|
156
|
+
"PromptMessage": ".types",
|
|
157
|
+
"PublicAssetOut": ".types",
|
|
158
|
+
"QueryExecuteRequestDatabaseAssetIds": ".query",
|
|
159
|
+
"ResearchAgentResponse": ".types",
|
|
160
|
+
"SaveAssetRequestOut": ".types",
|
|
161
|
+
"Sheet": ".types",
|
|
162
|
+
"SheetOperationResponse": ".types",
|
|
163
|
+
"SqlAgentResponse": ".types",
|
|
164
|
+
"StructuredDataExtractorResponse": ".types",
|
|
165
|
+
"TableRowData": ".types",
|
|
166
|
+
"TextContent": ".types",
|
|
167
|
+
"TextFormatModel": ".types",
|
|
168
|
+
"Textrotation": ".types",
|
|
169
|
+
"ThemeColor": ".types",
|
|
170
|
+
"ThreadStatusResponseOut": ".types",
|
|
171
|
+
"ToolsDataFrameRequestColumnsItem": ".tools",
|
|
172
|
+
"Type": ".types",
|
|
173
|
+
"UnauthorizedError": ".errors",
|
|
174
|
+
"UnprocessableEntityError": ".errors",
|
|
175
|
+
"UnsupportedMediaTypeError": ".errors",
|
|
176
|
+
"WrapStrategy": ".types",
|
|
177
|
+
"__version__": ".version",
|
|
178
|
+
"agents": ".agents",
|
|
179
|
+
"aop": ".aop",
|
|
180
|
+
"assets": ".assets",
|
|
181
|
+
"query": ".query",
|
|
182
|
+
"threads": ".threads",
|
|
183
|
+
"tools": ".tools",
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
188
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
189
|
+
if module_name is None:
|
|
190
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
191
|
+
try:
|
|
192
|
+
module = import_module(module_name, __package__)
|
|
193
|
+
if module_name == f".{attr_name}":
|
|
194
|
+
return module
|
|
195
|
+
else:
|
|
196
|
+
return getattr(module, attr_name)
|
|
197
|
+
except ImportError as e:
|
|
198
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
199
|
+
except AttributeError as e:
|
|
200
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
def __dir__():
|
|
204
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
205
|
+
return sorted(lazy_attrs)
|
|
206
|
+
|
|
72
207
|
|
|
73
208
|
__all__ = [
|
|
74
209
|
"AopAsyncExecuteResponseOut",
|
|
@@ -81,6 +216,12 @@ __all__ = [
|
|
|
81
216
|
"Athena",
|
|
82
217
|
"AthenaEnvironment",
|
|
83
218
|
"BadRequestError",
|
|
219
|
+
"BorderModel",
|
|
220
|
+
"BorderStyle",
|
|
221
|
+
"BordersModel",
|
|
222
|
+
"CellFormat",
|
|
223
|
+
"CellFormatHorizontalAlignment",
|
|
224
|
+
"CellFormatVerticalAlignment",
|
|
84
225
|
"Chunk",
|
|
85
226
|
"ChunkContentItem",
|
|
86
227
|
"ChunkContentItem_ImageUrl",
|
|
@@ -90,16 +231,20 @@ __all__ = [
|
|
|
90
231
|
"Content",
|
|
91
232
|
"ContentTooLargeError",
|
|
92
233
|
"ConversationAssetInfo",
|
|
234
|
+
"ConversationMessage",
|
|
235
|
+
"ConversationResult",
|
|
236
|
+
"CreatableAssetType",
|
|
237
|
+
"CreateAssetResponseOut",
|
|
93
238
|
"CreateNewSheetTabResponse",
|
|
239
|
+
"CreateProjectResponseOut",
|
|
94
240
|
"CustomAgentResponse",
|
|
95
241
|
"DataFrameRequestOut",
|
|
96
242
|
"DataFrameRequestOutColumnsItem",
|
|
97
243
|
"DataFrameRequestOutDataItemItem",
|
|
98
244
|
"DataFrameRequestOutIndexItem",
|
|
99
245
|
"DataFrameUnknownFormatError",
|
|
100
|
-
"
|
|
246
|
+
"DimensionProperties",
|
|
101
247
|
"DriveAgentResponse",
|
|
102
|
-
"FileChunkRequestOut",
|
|
103
248
|
"FileTooLargeError",
|
|
104
249
|
"FolderResponse",
|
|
105
250
|
"GeneralAgentConfig",
|
|
@@ -109,6 +254,7 @@ __all__ = [
|
|
|
109
254
|
"GeneralAgentResponseMessage",
|
|
110
255
|
"GeneralAgentResponseMessageKwargs",
|
|
111
256
|
"GetTableResponse",
|
|
257
|
+
"GridRange",
|
|
112
258
|
"Id",
|
|
113
259
|
"ImageUrlContent",
|
|
114
260
|
"InputMessage",
|
|
@@ -117,22 +263,30 @@ __all__ = [
|
|
|
117
263
|
"InputMessageContentItem_Text",
|
|
118
264
|
"InternalServerError",
|
|
119
265
|
"NotFoundError",
|
|
266
|
+
"NumberFormatModel",
|
|
267
|
+
"NumberFormatType",
|
|
120
268
|
"PaginatedAssetsOut",
|
|
121
269
|
"PromptMessage",
|
|
122
270
|
"PublicAssetOut",
|
|
123
271
|
"QueryExecuteRequestDatabaseAssetIds",
|
|
124
272
|
"ResearchAgentResponse",
|
|
125
273
|
"SaveAssetRequestOut",
|
|
274
|
+
"Sheet",
|
|
126
275
|
"SheetOperationResponse",
|
|
127
276
|
"SqlAgentResponse",
|
|
128
277
|
"StructuredDataExtractorResponse",
|
|
278
|
+
"TableRowData",
|
|
129
279
|
"TextContent",
|
|
280
|
+
"TextFormatModel",
|
|
281
|
+
"Textrotation",
|
|
282
|
+
"ThemeColor",
|
|
130
283
|
"ThreadStatusResponseOut",
|
|
131
284
|
"ToolsDataFrameRequestColumnsItem",
|
|
132
285
|
"Type",
|
|
133
286
|
"UnauthorizedError",
|
|
134
287
|
"UnprocessableEntityError",
|
|
135
288
|
"UnsupportedMediaTypeError",
|
|
289
|
+
"WrapStrategy",
|
|
136
290
|
"__version__",
|
|
137
291
|
"agents",
|
|
138
292
|
"aop",
|
athena/agents/__init__.py
CHANGED
|
@@ -2,6 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from . import drive, general, research, sql
|
|
10
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
11
|
+
"drive": ".drive",
|
|
12
|
+
"general": ".general",
|
|
13
|
+
"research": ".research",
|
|
14
|
+
"sql": ".sql",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
19
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
20
|
+
if module_name is None:
|
|
21
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
22
|
+
try:
|
|
23
|
+
module = import_module(module_name, __package__)
|
|
24
|
+
if module_name == f".{attr_name}":
|
|
25
|
+
return module
|
|
26
|
+
else:
|
|
27
|
+
return getattr(module, attr_name)
|
|
28
|
+
except ImportError as e:
|
|
29
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
30
|
+
except AttributeError as e:
|
|
31
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def __dir__():
|
|
35
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
36
|
+
return sorted(lazy_attrs)
|
|
37
|
+
|
|
6
38
|
|
|
7
39
|
__all__ = ["drive", "general", "research", "sql"]
|
athena/agents/client.py
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
3
5
|
import typing
|
|
4
6
|
|
|
5
7
|
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
6
8
|
from ..core.request_options import RequestOptions
|
|
7
9
|
from ..types.custom_agent_response import CustomAgentResponse
|
|
8
|
-
from .drive.client import AsyncDriveClient, DriveClient
|
|
9
|
-
from .general.client import AsyncGeneralClient, GeneralClient
|
|
10
10
|
from .raw_client import AsyncRawAgentsClient, RawAgentsClient
|
|
11
|
-
from .research.client import AsyncResearchClient, ResearchClient
|
|
12
|
-
from .sql.client import AsyncSqlClient, SqlClient
|
|
13
11
|
|
|
12
|
+
if typing.TYPE_CHECKING:
|
|
13
|
+
from .drive.client import AsyncDriveClient, DriveClient
|
|
14
|
+
from .general.client import AsyncGeneralClient, GeneralClient
|
|
15
|
+
from .research.client import AsyncResearchClient, ResearchClient
|
|
16
|
+
from .sql.client import AsyncSqlClient, SqlClient
|
|
14
17
|
# this is used as the default value for optional parameters
|
|
15
18
|
OMIT = typing.cast(typing.Any, ...)
|
|
16
19
|
|
|
@@ -18,13 +21,11 @@ OMIT = typing.cast(typing.Any, ...)
|
|
|
18
21
|
class AgentsClient:
|
|
19
22
|
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
20
23
|
self._raw_client = RawAgentsClient(client_wrapper=client_wrapper)
|
|
21
|
-
self.
|
|
22
|
-
|
|
23
|
-
self.
|
|
24
|
-
|
|
25
|
-
self.
|
|
26
|
-
|
|
27
|
-
self.sql = SqlClient(client_wrapper=client_wrapper)
|
|
24
|
+
self._client_wrapper = client_wrapper
|
|
25
|
+
self._drive: typing.Optional[DriveClient] = None
|
|
26
|
+
self._general: typing.Optional[GeneralClient] = None
|
|
27
|
+
self._research: typing.Optional[ResearchClient] = None
|
|
28
|
+
self._sql: typing.Optional[SqlClient] = None
|
|
28
29
|
|
|
29
30
|
@property
|
|
30
31
|
def with_raw_response(self) -> RawAgentsClient:
|
|
@@ -91,17 +92,47 @@ class AgentsClient:
|
|
|
91
92
|
)
|
|
92
93
|
return _response.data
|
|
93
94
|
|
|
95
|
+
@property
|
|
96
|
+
def drive(self):
|
|
97
|
+
if self._drive is None:
|
|
98
|
+
from .drive.client import DriveClient # noqa: E402
|
|
94
99
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
self._raw_client = AsyncRawAgentsClient(client_wrapper=client_wrapper)
|
|
98
|
-
self.drive = AsyncDriveClient(client_wrapper=client_wrapper)
|
|
100
|
+
self._drive = DriveClient(client_wrapper=self._client_wrapper)
|
|
101
|
+
return self._drive
|
|
99
102
|
|
|
100
|
-
|
|
103
|
+
@property
|
|
104
|
+
def general(self):
|
|
105
|
+
if self._general is None:
|
|
106
|
+
from .general.client import GeneralClient # noqa: E402
|
|
107
|
+
|
|
108
|
+
self._general = GeneralClient(client_wrapper=self._client_wrapper)
|
|
109
|
+
return self._general
|
|
101
110
|
|
|
102
|
-
|
|
111
|
+
@property
|
|
112
|
+
def research(self):
|
|
113
|
+
if self._research is None:
|
|
114
|
+
from .research.client import ResearchClient # noqa: E402
|
|
103
115
|
|
|
104
|
-
|
|
116
|
+
self._research = ResearchClient(client_wrapper=self._client_wrapper)
|
|
117
|
+
return self._research
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
def sql(self):
|
|
121
|
+
if self._sql is None:
|
|
122
|
+
from .sql.client import SqlClient # noqa: E402
|
|
123
|
+
|
|
124
|
+
self._sql = SqlClient(client_wrapper=self._client_wrapper)
|
|
125
|
+
return self._sql
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
class AsyncAgentsClient:
|
|
129
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
130
|
+
self._raw_client = AsyncRawAgentsClient(client_wrapper=client_wrapper)
|
|
131
|
+
self._client_wrapper = client_wrapper
|
|
132
|
+
self._drive: typing.Optional[AsyncDriveClient] = None
|
|
133
|
+
self._general: typing.Optional[AsyncGeneralClient] = None
|
|
134
|
+
self._research: typing.Optional[AsyncResearchClient] = None
|
|
135
|
+
self._sql: typing.Optional[AsyncSqlClient] = None
|
|
105
136
|
|
|
106
137
|
@property
|
|
107
138
|
def with_raw_response(self) -> AsyncRawAgentsClient:
|
|
@@ -175,3 +206,35 @@ class AsyncAgentsClient:
|
|
|
175
206
|
agent_id, config=config, messages=messages, request_options=request_options
|
|
176
207
|
)
|
|
177
208
|
return _response.data
|
|
209
|
+
|
|
210
|
+
@property
|
|
211
|
+
def drive(self):
|
|
212
|
+
if self._drive is None:
|
|
213
|
+
from .drive.client import AsyncDriveClient # noqa: E402
|
|
214
|
+
|
|
215
|
+
self._drive = AsyncDriveClient(client_wrapper=self._client_wrapper)
|
|
216
|
+
return self._drive
|
|
217
|
+
|
|
218
|
+
@property
|
|
219
|
+
def general(self):
|
|
220
|
+
if self._general is None:
|
|
221
|
+
from .general.client import AsyncGeneralClient # noqa: E402
|
|
222
|
+
|
|
223
|
+
self._general = AsyncGeneralClient(client_wrapper=self._client_wrapper)
|
|
224
|
+
return self._general
|
|
225
|
+
|
|
226
|
+
@property
|
|
227
|
+
def research(self):
|
|
228
|
+
if self._research is None:
|
|
229
|
+
from .research.client import AsyncResearchClient # noqa: E402
|
|
230
|
+
|
|
231
|
+
self._research = AsyncResearchClient(client_wrapper=self._client_wrapper)
|
|
232
|
+
return self._research
|
|
233
|
+
|
|
234
|
+
@property
|
|
235
|
+
def sql(self):
|
|
236
|
+
if self._sql is None:
|
|
237
|
+
from .sql.client import AsyncSqlClient # noqa: E402
|
|
238
|
+
|
|
239
|
+
self._sql = AsyncSqlClient(client_wrapper=self._client_wrapper)
|
|
240
|
+
return self._sql
|
athena/aop/client.py
CHANGED
|
@@ -32,7 +32,7 @@ class AopClient:
|
|
|
32
32
|
self, *, request: AopExecuteRequestIn, request_options: typing.Optional[RequestOptions] = None
|
|
33
33
|
) -> AopExecuteResponseOut:
|
|
34
34
|
"""
|
|
35
|
-
Execute an existing Agent Operating Procedure (AOP) asset with optional user inputs. AOPs are pre-configured AI workflows that can perform complex tasks like research, analysis, and content generation.
|
|
35
|
+
⚠️ DEPRECATED: This endpoint is deprecated. Please use /aop/execute-async instead for better performance and reliability. Execute an existing Agent Operating Procedure (AOP) asset with optional user inputs. AOPs are pre-configured AI workflows that can perform complex tasks like research, analysis, and content generation.
|
|
36
36
|
|
|
37
37
|
Parameters
|
|
38
38
|
----------
|
|
@@ -118,7 +118,7 @@ class AsyncAopClient:
|
|
|
118
118
|
self, *, request: AopExecuteRequestIn, request_options: typing.Optional[RequestOptions] = None
|
|
119
119
|
) -> AopExecuteResponseOut:
|
|
120
120
|
"""
|
|
121
|
-
Execute an existing Agent Operating Procedure (AOP) asset with optional user inputs. AOPs are pre-configured AI workflows that can perform complex tasks like research, analysis, and content generation.
|
|
121
|
+
⚠️ DEPRECATED: This endpoint is deprecated. Please use /aop/execute-async instead for better performance and reliability. Execute an existing Agent Operating Procedure (AOP) asset with optional user inputs. AOPs are pre-configured AI workflows that can perform complex tasks like research, analysis, and content generation.
|
|
122
122
|
|
|
123
123
|
Parameters
|
|
124
124
|
----------
|
athena/aop/raw_client.py
CHANGED
|
@@ -30,7 +30,7 @@ class RawAopClient:
|
|
|
30
30
|
self, *, request: AopExecuteRequestIn, request_options: typing.Optional[RequestOptions] = None
|
|
31
31
|
) -> HttpResponse[AopExecuteResponseOut]:
|
|
32
32
|
"""
|
|
33
|
-
Execute an existing Agent Operating Procedure (AOP) asset with optional user inputs. AOPs are pre-configured AI workflows that can perform complex tasks like research, analysis, and content generation.
|
|
33
|
+
⚠️ DEPRECATED: This endpoint is deprecated. Please use /aop/execute-async instead for better performance and reliability. Execute an existing Agent Operating Procedure (AOP) asset with optional user inputs. AOPs are pre-configured AI workflows that can perform complex tasks like research, analysis, and content generation.
|
|
34
34
|
|
|
35
35
|
Parameters
|
|
36
36
|
----------
|
|
@@ -235,7 +235,7 @@ class AsyncRawAopClient:
|
|
|
235
235
|
self, *, request: AopExecuteRequestIn, request_options: typing.Optional[RequestOptions] = None
|
|
236
236
|
) -> AsyncHttpResponse[AopExecuteResponseOut]:
|
|
237
237
|
"""
|
|
238
|
-
Execute an existing Agent Operating Procedure (AOP) asset with optional user inputs. AOPs are pre-configured AI workflows that can perform complex tasks like research, analysis, and content generation.
|
|
238
|
+
⚠️ DEPRECATED: This endpoint is deprecated. Please use /aop/execute-async instead for better performance and reliability. Execute an existing Agent Operating Procedure (AOP) asset with optional user inputs. AOPs are pre-configured AI workflows that can perform complex tasks like research, analysis, and content generation.
|
|
239
239
|
|
|
240
240
|
Parameters
|
|
241
241
|
----------
|