athena-intelligence 0.1.230__py3-none-any.whl → 0.1.242__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 +217 -68
- athena/agents/__init__.py +33 -1
- athena/agents/client.py +81 -18
- athena/assets/client.py +12 -2
- athena/base_client.py +118 -18
- athena/client.py +14 -8
- 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/errors/__init__.py +42 -7
- athena/query/__init__.py +28 -1
- athena/query/types/__init__.py +30 -1
- athena/tools/__init__.py +47 -3
- athena/tools/client.py +157 -26
- athena/tools/sheets/__init__.py +30 -0
- athena/tools/sheets/client.py +59 -94
- athena/tools/sheets/raw_client.py +60 -74
- athena/tools/sheets/types/__init__.py +36 -0
- athena/tools/sheets/types/update_sheet_range_request_values_item_item.py +5 -0
- athena/tools/types/__init__.py +28 -1
- athena/types/__init__.py +181 -51
- athena/types/aop_execute_response_out.py +2 -1
- athena/types/backgroundcolor.py +7 -0
- athena/types/border_model.py +23 -0
- athena/types/border_style.py +7 -0
- athena/types/borders_model.py +23 -0
- athena/types/cell_format.py +49 -0
- athena/types/cell_format_horizontal_alignment.py +5 -0
- athena/types/cell_format_vertical_alignment.py +5 -0
- athena/types/color.py +7 -0
- athena/types/conversation_asset_info.py +3 -2
- athena/types/conversation_message.py +42 -0
- athena/types/conversation_result.py +67 -0
- athena/types/number_format_model.py +28 -0
- athena/types/number_format_type.py +21 -0
- athena/types/sheet.py +53 -0
- athena/types/text_format_model.py +28 -0
- athena/types/textrotation.py +5 -0
- athena/types/theme_color.py +20 -0
- athena/types/wrap_strategy.py +5 -0
- {athena_intelligence-0.1.230.dist-info → athena_intelligence-0.1.242.dist-info}/METADATA +1 -1
- {athena_intelligence-0.1.230.dist-info → athena_intelligence-0.1.242.dist-info}/RECORD +45 -26
- {athena_intelligence-0.1.230.dist-info → athena_intelligence-0.1.242.dist-info}/WHEEL +0 -0
athena/__init__.py
CHANGED
|
@@ -2,74 +2,206 @@
|
|
|
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
|
-
|
|
72
|
-
|
|
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
|
+
Backgroundcolor,
|
|
17
|
+
BorderModel,
|
|
18
|
+
BorderStyle,
|
|
19
|
+
BordersModel,
|
|
20
|
+
CellFormat,
|
|
21
|
+
CellFormatHorizontalAlignment,
|
|
22
|
+
CellFormatVerticalAlignment,
|
|
23
|
+
Chunk,
|
|
24
|
+
ChunkContentItem,
|
|
25
|
+
ChunkContentItem_ImageUrl,
|
|
26
|
+
ChunkContentItem_Text,
|
|
27
|
+
ChunkResult,
|
|
28
|
+
ChunkResultChunkId,
|
|
29
|
+
Color,
|
|
30
|
+
Content,
|
|
31
|
+
ConversationAssetInfo,
|
|
32
|
+
ConversationMessage,
|
|
33
|
+
ConversationResult,
|
|
34
|
+
CreateNewSheetTabResponse,
|
|
35
|
+
CustomAgentResponse,
|
|
36
|
+
DataFrameRequestOut,
|
|
37
|
+
DataFrameRequestOutColumnsItem,
|
|
38
|
+
DataFrameRequestOutDataItemItem,
|
|
39
|
+
DataFrameRequestOutIndexItem,
|
|
40
|
+
DataFrameUnknownFormatError,
|
|
41
|
+
DocumentChunk,
|
|
42
|
+
DriveAgentResponse,
|
|
43
|
+
FileChunkRequestOut,
|
|
44
|
+
FileTooLargeError,
|
|
45
|
+
FolderResponse,
|
|
46
|
+
GeneralAgentConfig,
|
|
47
|
+
GeneralAgentConfigEnabledToolsItem,
|
|
48
|
+
GeneralAgentRequest,
|
|
49
|
+
GeneralAgentResponse,
|
|
50
|
+
GeneralAgentResponseMessage,
|
|
51
|
+
GeneralAgentResponseMessageKwargs,
|
|
52
|
+
GetTableResponse,
|
|
53
|
+
Id,
|
|
54
|
+
ImageUrlContent,
|
|
55
|
+
InputMessage,
|
|
56
|
+
InputMessageContentItem,
|
|
57
|
+
InputMessageContentItem_ImageUrl,
|
|
58
|
+
InputMessageContentItem_Text,
|
|
59
|
+
NumberFormatModel,
|
|
60
|
+
NumberFormatType,
|
|
61
|
+
PaginatedAssetsOut,
|
|
62
|
+
PromptMessage,
|
|
63
|
+
PublicAssetOut,
|
|
64
|
+
ResearchAgentResponse,
|
|
65
|
+
SaveAssetRequestOut,
|
|
66
|
+
Sheet,
|
|
67
|
+
SheetOperationResponse,
|
|
68
|
+
SqlAgentResponse,
|
|
69
|
+
StructuredDataExtractorResponse,
|
|
70
|
+
TableRowData,
|
|
71
|
+
TextContent,
|
|
72
|
+
TextFormatModel,
|
|
73
|
+
Textrotation,
|
|
74
|
+
ThemeColor,
|
|
75
|
+
ThreadStatusResponseOut,
|
|
76
|
+
Type,
|
|
77
|
+
WrapStrategy,
|
|
78
|
+
)
|
|
79
|
+
from .errors import (
|
|
80
|
+
BadRequestError,
|
|
81
|
+
ContentTooLargeError,
|
|
82
|
+
InternalServerError,
|
|
83
|
+
NotFoundError,
|
|
84
|
+
UnauthorizedError,
|
|
85
|
+
UnprocessableEntityError,
|
|
86
|
+
UnsupportedMediaTypeError,
|
|
87
|
+
)
|
|
88
|
+
from . import agents, aop, assets, query, threads, tools
|
|
89
|
+
from .client import AsyncAthena, Athena
|
|
90
|
+
from .environment import AthenaEnvironment
|
|
91
|
+
from .query import QueryExecuteRequestDatabaseAssetIds
|
|
92
|
+
from .tools import ToolsDataFrameRequestColumnsItem
|
|
93
|
+
from .version import __version__
|
|
94
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
95
|
+
"AopAsyncExecuteResponseOut": ".types",
|
|
96
|
+
"AopExecuteRequestIn": ".types",
|
|
97
|
+
"AopExecuteResponseOut": ".types",
|
|
98
|
+
"AssetContentRequestOut": ".types",
|
|
99
|
+
"AssetNode": ".types",
|
|
100
|
+
"AssetScreenshotResponseOut": ".types",
|
|
101
|
+
"AsyncAthena": ".client",
|
|
102
|
+
"Athena": ".client",
|
|
103
|
+
"AthenaEnvironment": ".environment",
|
|
104
|
+
"Backgroundcolor": ".types",
|
|
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
|
+
"Color": ".types",
|
|
119
|
+
"Content": ".types",
|
|
120
|
+
"ContentTooLargeError": ".errors",
|
|
121
|
+
"ConversationAssetInfo": ".types",
|
|
122
|
+
"ConversationMessage": ".types",
|
|
123
|
+
"ConversationResult": ".types",
|
|
124
|
+
"CreateNewSheetTabResponse": ".types",
|
|
125
|
+
"CustomAgentResponse": ".types",
|
|
126
|
+
"DataFrameRequestOut": ".types",
|
|
127
|
+
"DataFrameRequestOutColumnsItem": ".types",
|
|
128
|
+
"DataFrameRequestOutDataItemItem": ".types",
|
|
129
|
+
"DataFrameRequestOutIndexItem": ".types",
|
|
130
|
+
"DataFrameUnknownFormatError": ".types",
|
|
131
|
+
"DocumentChunk": ".types",
|
|
132
|
+
"DriveAgentResponse": ".types",
|
|
133
|
+
"FileChunkRequestOut": ".types",
|
|
134
|
+
"FileTooLargeError": ".types",
|
|
135
|
+
"FolderResponse": ".types",
|
|
136
|
+
"GeneralAgentConfig": ".types",
|
|
137
|
+
"GeneralAgentConfigEnabledToolsItem": ".types",
|
|
138
|
+
"GeneralAgentRequest": ".types",
|
|
139
|
+
"GeneralAgentResponse": ".types",
|
|
140
|
+
"GeneralAgentResponseMessage": ".types",
|
|
141
|
+
"GeneralAgentResponseMessageKwargs": ".types",
|
|
142
|
+
"GetTableResponse": ".types",
|
|
143
|
+
"Id": ".types",
|
|
144
|
+
"ImageUrlContent": ".types",
|
|
145
|
+
"InputMessage": ".types",
|
|
146
|
+
"InputMessageContentItem": ".types",
|
|
147
|
+
"InputMessageContentItem_ImageUrl": ".types",
|
|
148
|
+
"InputMessageContentItem_Text": ".types",
|
|
149
|
+
"InternalServerError": ".errors",
|
|
150
|
+
"NotFoundError": ".errors",
|
|
151
|
+
"NumberFormatModel": ".types",
|
|
152
|
+
"NumberFormatType": ".types",
|
|
153
|
+
"PaginatedAssetsOut": ".types",
|
|
154
|
+
"PromptMessage": ".types",
|
|
155
|
+
"PublicAssetOut": ".types",
|
|
156
|
+
"QueryExecuteRequestDatabaseAssetIds": ".query",
|
|
157
|
+
"ResearchAgentResponse": ".types",
|
|
158
|
+
"SaveAssetRequestOut": ".types",
|
|
159
|
+
"Sheet": ".types",
|
|
160
|
+
"SheetOperationResponse": ".types",
|
|
161
|
+
"SqlAgentResponse": ".types",
|
|
162
|
+
"StructuredDataExtractorResponse": ".types",
|
|
163
|
+
"TableRowData": ".types",
|
|
164
|
+
"TextContent": ".types",
|
|
165
|
+
"TextFormatModel": ".types",
|
|
166
|
+
"Textrotation": ".types",
|
|
167
|
+
"ThemeColor": ".types",
|
|
168
|
+
"ThreadStatusResponseOut": ".types",
|
|
169
|
+
"ToolsDataFrameRequestColumnsItem": ".tools",
|
|
170
|
+
"Type": ".types",
|
|
171
|
+
"UnauthorizedError": ".errors",
|
|
172
|
+
"UnprocessableEntityError": ".errors",
|
|
173
|
+
"UnsupportedMediaTypeError": ".errors",
|
|
174
|
+
"WrapStrategy": ".types",
|
|
175
|
+
"__version__": ".version",
|
|
176
|
+
"agents": ".agents",
|
|
177
|
+
"aop": ".aop",
|
|
178
|
+
"assets": ".assets",
|
|
179
|
+
"query": ".query",
|
|
180
|
+
"threads": ".threads",
|
|
181
|
+
"tools": ".tools",
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
186
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
187
|
+
if module_name is None:
|
|
188
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
189
|
+
try:
|
|
190
|
+
module = import_module(module_name, __package__)
|
|
191
|
+
if module_name == f".{attr_name}":
|
|
192
|
+
return module
|
|
193
|
+
else:
|
|
194
|
+
return getattr(module, attr_name)
|
|
195
|
+
except ImportError as e:
|
|
196
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
197
|
+
except AttributeError as e:
|
|
198
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
def __dir__():
|
|
202
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
203
|
+
return sorted(lazy_attrs)
|
|
204
|
+
|
|
73
205
|
|
|
74
206
|
__all__ = [
|
|
75
207
|
"AopAsyncExecuteResponseOut",
|
|
@@ -81,16 +213,26 @@ __all__ = [
|
|
|
81
213
|
"AsyncAthena",
|
|
82
214
|
"Athena",
|
|
83
215
|
"AthenaEnvironment",
|
|
216
|
+
"Backgroundcolor",
|
|
84
217
|
"BadRequestError",
|
|
218
|
+
"BorderModel",
|
|
219
|
+
"BorderStyle",
|
|
220
|
+
"BordersModel",
|
|
221
|
+
"CellFormat",
|
|
222
|
+
"CellFormatHorizontalAlignment",
|
|
223
|
+
"CellFormatVerticalAlignment",
|
|
85
224
|
"Chunk",
|
|
86
225
|
"ChunkContentItem",
|
|
87
226
|
"ChunkContentItem_ImageUrl",
|
|
88
227
|
"ChunkContentItem_Text",
|
|
89
228
|
"ChunkResult",
|
|
90
229
|
"ChunkResultChunkId",
|
|
230
|
+
"Color",
|
|
91
231
|
"Content",
|
|
92
232
|
"ContentTooLargeError",
|
|
93
233
|
"ConversationAssetInfo",
|
|
234
|
+
"ConversationMessage",
|
|
235
|
+
"ConversationResult",
|
|
94
236
|
"CreateNewSheetTabResponse",
|
|
95
237
|
"CustomAgentResponse",
|
|
96
238
|
"DataFrameRequestOut",
|
|
@@ -118,23 +260,30 @@ __all__ = [
|
|
|
118
260
|
"InputMessageContentItem_Text",
|
|
119
261
|
"InternalServerError",
|
|
120
262
|
"NotFoundError",
|
|
263
|
+
"NumberFormatModel",
|
|
264
|
+
"NumberFormatType",
|
|
121
265
|
"PaginatedAssetsOut",
|
|
122
266
|
"PromptMessage",
|
|
123
267
|
"PublicAssetOut",
|
|
124
268
|
"QueryExecuteRequestDatabaseAssetIds",
|
|
125
269
|
"ResearchAgentResponse",
|
|
126
270
|
"SaveAssetRequestOut",
|
|
271
|
+
"Sheet",
|
|
127
272
|
"SheetOperationResponse",
|
|
128
273
|
"SqlAgentResponse",
|
|
129
274
|
"StructuredDataExtractorResponse",
|
|
130
275
|
"TableRowData",
|
|
131
276
|
"TextContent",
|
|
277
|
+
"TextFormatModel",
|
|
278
|
+
"Textrotation",
|
|
279
|
+
"ThemeColor",
|
|
132
280
|
"ThreadStatusResponseOut",
|
|
133
281
|
"ToolsDataFrameRequestColumnsItem",
|
|
134
282
|
"Type",
|
|
135
283
|
"UnauthorizedError",
|
|
136
284
|
"UnprocessableEntityError",
|
|
137
285
|
"UnsupportedMediaTypeError",
|
|
286
|
+
"WrapStrategy",
|
|
138
287
|
"__version__",
|
|
139
288
|
"agents",
|
|
140
289
|
"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/assets/client.py
CHANGED
|
@@ -64,7 +64,12 @@ class AssetsClient:
|
|
|
64
64
|
client = Athena(
|
|
65
65
|
api_key="YOUR_API_KEY",
|
|
66
66
|
)
|
|
67
|
-
client.assets.list(
|
|
67
|
+
client.assets.list(
|
|
68
|
+
limit=1,
|
|
69
|
+
offset=1,
|
|
70
|
+
filters="filters",
|
|
71
|
+
sort="sort",
|
|
72
|
+
)
|
|
68
73
|
"""
|
|
69
74
|
_response = self._raw_client.list(
|
|
70
75
|
limit=limit, offset=offset, filters=filters, sort=sort, request_options=request_options
|
|
@@ -133,7 +138,12 @@ class AsyncAssetsClient:
|
|
|
133
138
|
|
|
134
139
|
|
|
135
140
|
async def main() -> None:
|
|
136
|
-
await client.assets.list(
|
|
141
|
+
await client.assets.list(
|
|
142
|
+
limit=1,
|
|
143
|
+
offset=1,
|
|
144
|
+
filters="filters",
|
|
145
|
+
sort="sort",
|
|
146
|
+
)
|
|
137
147
|
|
|
138
148
|
|
|
139
149
|
asyncio.run(main())
|