athena-intelligence 0.1.262__py3-none-any.whl → 0.1.264__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 +3 -0
- athena/assets/client.py +148 -0
- athena/assets/raw_client.py +210 -0
- athena/core/client_wrapper.py +2 -2
- athena/types/__init__.py +3 -0
- athena/types/create_project_response_out.py +46 -0
- {athena_intelligence-0.1.262.dist-info → athena_intelligence-0.1.264.dist-info}/METADATA +1 -1
- {athena_intelligence-0.1.262.dist-info → athena_intelligence-0.1.264.dist-info}/RECORD +9 -8
- {athena_intelligence-0.1.262.dist-info → athena_intelligence-0.1.264.dist-info}/WHEEL +0 -0
athena/__init__.py
CHANGED
|
@@ -32,6 +32,7 @@ if typing.TYPE_CHECKING:
|
|
|
32
32
|
ConversationMessage,
|
|
33
33
|
ConversationResult,
|
|
34
34
|
CreateNewSheetTabResponse,
|
|
35
|
+
CreateProjectResponseOut,
|
|
35
36
|
CustomAgentResponse,
|
|
36
37
|
DataFrameRequestOut,
|
|
37
38
|
DataFrameRequestOutColumnsItem,
|
|
@@ -125,6 +126,7 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
125
126
|
"ConversationMessage": ".types",
|
|
126
127
|
"ConversationResult": ".types",
|
|
127
128
|
"CreateNewSheetTabResponse": ".types",
|
|
129
|
+
"CreateProjectResponseOut": ".types",
|
|
128
130
|
"CustomAgentResponse": ".types",
|
|
129
131
|
"DataFrameRequestOut": ".types",
|
|
130
132
|
"DataFrameRequestOutColumnsItem": ".types",
|
|
@@ -240,6 +242,7 @@ __all__ = [
|
|
|
240
242
|
"ConversationMessage",
|
|
241
243
|
"ConversationResult",
|
|
242
244
|
"CreateNewSheetTabResponse",
|
|
245
|
+
"CreateProjectResponseOut",
|
|
243
246
|
"CustomAgentResponse",
|
|
244
247
|
"DataFrameRequestOut",
|
|
245
248
|
"DataFrameRequestOutColumnsItem",
|
athena/assets/client.py
CHANGED
|
@@ -4,10 +4,14 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
6
6
|
from ..core.request_options import RequestOptions
|
|
7
|
+
from ..types.create_project_response_out import CreateProjectResponseOut
|
|
7
8
|
from ..types.paginated_assets_out import PaginatedAssetsOut
|
|
8
9
|
from ..types.public_asset_out import PublicAssetOut
|
|
9
10
|
from .raw_client import AsyncRawAssetsClient, RawAssetsClient
|
|
10
11
|
|
|
12
|
+
# this is used as the default value for optional parameters
|
|
13
|
+
OMIT = typing.cast(typing.Any, ...)
|
|
14
|
+
|
|
11
15
|
|
|
12
16
|
class AssetsClient:
|
|
13
17
|
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
@@ -77,6 +81,74 @@ class AssetsClient:
|
|
|
77
81
|
)
|
|
78
82
|
return _response.data
|
|
79
83
|
|
|
84
|
+
def create_project(
|
|
85
|
+
self,
|
|
86
|
+
*,
|
|
87
|
+
title: str,
|
|
88
|
+
custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
89
|
+
description: typing.Optional[str] = OMIT,
|
|
90
|
+
parent_folder_id: typing.Optional[str] = OMIT,
|
|
91
|
+
project_type: typing.Optional[str] = OMIT,
|
|
92
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
93
|
+
) -> CreateProjectResponseOut:
|
|
94
|
+
"""
|
|
95
|
+
Create a new project with custom metadata. Projects can be typed (e.g., 'candidate', 'user', 'company') and include flexible custom metadata for storing additional information.
|
|
96
|
+
|
|
97
|
+
Parameters
|
|
98
|
+
----------
|
|
99
|
+
title : str
|
|
100
|
+
The project title
|
|
101
|
+
|
|
102
|
+
custom_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
103
|
+
A flexible dictionary for storing custom metadata
|
|
104
|
+
|
|
105
|
+
description : typing.Optional[str]
|
|
106
|
+
Optional project description
|
|
107
|
+
|
|
108
|
+
parent_folder_id : typing.Optional[str]
|
|
109
|
+
Optional parent folder ID
|
|
110
|
+
|
|
111
|
+
project_type : typing.Optional[str]
|
|
112
|
+
User-defined project type (e.g., 'candidate', 'user', 'company')
|
|
113
|
+
|
|
114
|
+
request_options : typing.Optional[RequestOptions]
|
|
115
|
+
Request-specific configuration.
|
|
116
|
+
|
|
117
|
+
Returns
|
|
118
|
+
-------
|
|
119
|
+
CreateProjectResponseOut
|
|
120
|
+
Project created successfully
|
|
121
|
+
|
|
122
|
+
Examples
|
|
123
|
+
--------
|
|
124
|
+
from athena import Athena
|
|
125
|
+
|
|
126
|
+
client = Athena(
|
|
127
|
+
api_key="YOUR_API_KEY",
|
|
128
|
+
)
|
|
129
|
+
client.assets.create_project(
|
|
130
|
+
custom_metadata={
|
|
131
|
+
"email": "john.doe@example.com",
|
|
132
|
+
"phone": "+1-555-0123",
|
|
133
|
+
"source": "linkedin",
|
|
134
|
+
"status": "active",
|
|
135
|
+
},
|
|
136
|
+
description="Candidate profile for senior software engineer position",
|
|
137
|
+
parent_folder_id="asset_folder_123",
|
|
138
|
+
project_type="candidate",
|
|
139
|
+
title="John Doe - Software Engineer",
|
|
140
|
+
)
|
|
141
|
+
"""
|
|
142
|
+
_response = self._raw_client.create_project(
|
|
143
|
+
title=title,
|
|
144
|
+
custom_metadata=custom_metadata,
|
|
145
|
+
description=description,
|
|
146
|
+
parent_folder_id=parent_folder_id,
|
|
147
|
+
project_type=project_type,
|
|
148
|
+
request_options=request_options,
|
|
149
|
+
)
|
|
150
|
+
return _response.data
|
|
151
|
+
|
|
80
152
|
def get(self, asset_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> PublicAssetOut:
|
|
81
153
|
"""
|
|
82
154
|
Retrieve a single asset by its ID. Returns comprehensive metadata including creation info, tags, timestamps, media type, and AI-generated summary.
|
|
@@ -184,6 +256,82 @@ class AsyncAssetsClient:
|
|
|
184
256
|
)
|
|
185
257
|
return _response.data
|
|
186
258
|
|
|
259
|
+
async def create_project(
|
|
260
|
+
self,
|
|
261
|
+
*,
|
|
262
|
+
title: str,
|
|
263
|
+
custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
264
|
+
description: typing.Optional[str] = OMIT,
|
|
265
|
+
parent_folder_id: typing.Optional[str] = OMIT,
|
|
266
|
+
project_type: typing.Optional[str] = OMIT,
|
|
267
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
268
|
+
) -> CreateProjectResponseOut:
|
|
269
|
+
"""
|
|
270
|
+
Create a new project with custom metadata. Projects can be typed (e.g., 'candidate', 'user', 'company') and include flexible custom metadata for storing additional information.
|
|
271
|
+
|
|
272
|
+
Parameters
|
|
273
|
+
----------
|
|
274
|
+
title : str
|
|
275
|
+
The project title
|
|
276
|
+
|
|
277
|
+
custom_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
278
|
+
A flexible dictionary for storing custom metadata
|
|
279
|
+
|
|
280
|
+
description : typing.Optional[str]
|
|
281
|
+
Optional project description
|
|
282
|
+
|
|
283
|
+
parent_folder_id : typing.Optional[str]
|
|
284
|
+
Optional parent folder ID
|
|
285
|
+
|
|
286
|
+
project_type : typing.Optional[str]
|
|
287
|
+
User-defined project type (e.g., 'candidate', 'user', 'company')
|
|
288
|
+
|
|
289
|
+
request_options : typing.Optional[RequestOptions]
|
|
290
|
+
Request-specific configuration.
|
|
291
|
+
|
|
292
|
+
Returns
|
|
293
|
+
-------
|
|
294
|
+
CreateProjectResponseOut
|
|
295
|
+
Project created successfully
|
|
296
|
+
|
|
297
|
+
Examples
|
|
298
|
+
--------
|
|
299
|
+
import asyncio
|
|
300
|
+
|
|
301
|
+
from athena import AsyncAthena
|
|
302
|
+
|
|
303
|
+
client = AsyncAthena(
|
|
304
|
+
api_key="YOUR_API_KEY",
|
|
305
|
+
)
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
async def main() -> None:
|
|
309
|
+
await client.assets.create_project(
|
|
310
|
+
custom_metadata={
|
|
311
|
+
"email": "john.doe@example.com",
|
|
312
|
+
"phone": "+1-555-0123",
|
|
313
|
+
"source": "linkedin",
|
|
314
|
+
"status": "active",
|
|
315
|
+
},
|
|
316
|
+
description="Candidate profile for senior software engineer position",
|
|
317
|
+
parent_folder_id="asset_folder_123",
|
|
318
|
+
project_type="candidate",
|
|
319
|
+
title="John Doe - Software Engineer",
|
|
320
|
+
)
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
asyncio.run(main())
|
|
324
|
+
"""
|
|
325
|
+
_response = await self._raw_client.create_project(
|
|
326
|
+
title=title,
|
|
327
|
+
custom_metadata=custom_metadata,
|
|
328
|
+
description=description,
|
|
329
|
+
parent_folder_id=parent_folder_id,
|
|
330
|
+
project_type=project_type,
|
|
331
|
+
request_options=request_options,
|
|
332
|
+
)
|
|
333
|
+
return _response.data
|
|
334
|
+
|
|
187
335
|
async def get(self, asset_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> PublicAssetOut:
|
|
188
336
|
"""
|
|
189
337
|
Retrieve a single asset by its ID. Returns comprehensive metadata including creation info, tags, timestamps, media type, and AI-generated summary.
|
athena/assets/raw_client.py
CHANGED
|
@@ -9,12 +9,18 @@ from ..core.http_response import AsyncHttpResponse, HttpResponse
|
|
|
9
9
|
from ..core.jsonable_encoder import jsonable_encoder
|
|
10
10
|
from ..core.pydantic_utilities import parse_obj_as
|
|
11
11
|
from ..core.request_options import RequestOptions
|
|
12
|
+
from ..errors.bad_request_error import BadRequestError
|
|
13
|
+
from ..errors.internal_server_error import InternalServerError
|
|
12
14
|
from ..errors.not_found_error import NotFoundError
|
|
13
15
|
from ..errors.unauthorized_error import UnauthorizedError
|
|
14
16
|
from ..errors.unprocessable_entity_error import UnprocessableEntityError
|
|
17
|
+
from ..types.create_project_response_out import CreateProjectResponseOut
|
|
15
18
|
from ..types.paginated_assets_out import PaginatedAssetsOut
|
|
16
19
|
from ..types.public_asset_out import PublicAssetOut
|
|
17
20
|
|
|
21
|
+
# this is used as the default value for optional parameters
|
|
22
|
+
OMIT = typing.cast(typing.Any, ...)
|
|
23
|
+
|
|
18
24
|
|
|
19
25
|
class RawAssetsClient:
|
|
20
26
|
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
@@ -91,6 +97,108 @@ class RawAssetsClient:
|
|
|
91
97
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
92
98
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
93
99
|
|
|
100
|
+
def create_project(
|
|
101
|
+
self,
|
|
102
|
+
*,
|
|
103
|
+
title: str,
|
|
104
|
+
custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
105
|
+
description: typing.Optional[str] = OMIT,
|
|
106
|
+
parent_folder_id: typing.Optional[str] = OMIT,
|
|
107
|
+
project_type: typing.Optional[str] = OMIT,
|
|
108
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
109
|
+
) -> HttpResponse[CreateProjectResponseOut]:
|
|
110
|
+
"""
|
|
111
|
+
Create a new project with custom metadata. Projects can be typed (e.g., 'candidate', 'user', 'company') and include flexible custom metadata for storing additional information.
|
|
112
|
+
|
|
113
|
+
Parameters
|
|
114
|
+
----------
|
|
115
|
+
title : str
|
|
116
|
+
The project title
|
|
117
|
+
|
|
118
|
+
custom_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
119
|
+
A flexible dictionary for storing custom metadata
|
|
120
|
+
|
|
121
|
+
description : typing.Optional[str]
|
|
122
|
+
Optional project description
|
|
123
|
+
|
|
124
|
+
parent_folder_id : typing.Optional[str]
|
|
125
|
+
Optional parent folder ID
|
|
126
|
+
|
|
127
|
+
project_type : typing.Optional[str]
|
|
128
|
+
User-defined project type (e.g., 'candidate', 'user', 'company')
|
|
129
|
+
|
|
130
|
+
request_options : typing.Optional[RequestOptions]
|
|
131
|
+
Request-specific configuration.
|
|
132
|
+
|
|
133
|
+
Returns
|
|
134
|
+
-------
|
|
135
|
+
HttpResponse[CreateProjectResponseOut]
|
|
136
|
+
Project created successfully
|
|
137
|
+
"""
|
|
138
|
+
_response = self._client_wrapper.httpx_client.request(
|
|
139
|
+
"api/v0/assets/create_project",
|
|
140
|
+
method="POST",
|
|
141
|
+
json={
|
|
142
|
+
"custom_metadata": custom_metadata,
|
|
143
|
+
"description": description,
|
|
144
|
+
"parent_folder_id": parent_folder_id,
|
|
145
|
+
"project_type": project_type,
|
|
146
|
+
"title": title,
|
|
147
|
+
},
|
|
148
|
+
headers={
|
|
149
|
+
"content-type": "application/json",
|
|
150
|
+
},
|
|
151
|
+
request_options=request_options,
|
|
152
|
+
omit=OMIT,
|
|
153
|
+
)
|
|
154
|
+
try:
|
|
155
|
+
if 200 <= _response.status_code < 300:
|
|
156
|
+
_data = typing.cast(
|
|
157
|
+
CreateProjectResponseOut,
|
|
158
|
+
parse_obj_as(
|
|
159
|
+
type_=CreateProjectResponseOut, # type: ignore
|
|
160
|
+
object_=_response.json(),
|
|
161
|
+
),
|
|
162
|
+
)
|
|
163
|
+
return HttpResponse(response=_response, data=_data)
|
|
164
|
+
if _response.status_code == 400:
|
|
165
|
+
raise BadRequestError(
|
|
166
|
+
headers=dict(_response.headers),
|
|
167
|
+
body=typing.cast(
|
|
168
|
+
typing.Optional[typing.Any],
|
|
169
|
+
parse_obj_as(
|
|
170
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
171
|
+
object_=_response.json(),
|
|
172
|
+
),
|
|
173
|
+
),
|
|
174
|
+
)
|
|
175
|
+
if _response.status_code == 422:
|
|
176
|
+
raise UnprocessableEntityError(
|
|
177
|
+
headers=dict(_response.headers),
|
|
178
|
+
body=typing.cast(
|
|
179
|
+
typing.Optional[typing.Any],
|
|
180
|
+
parse_obj_as(
|
|
181
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
182
|
+
object_=_response.json(),
|
|
183
|
+
),
|
|
184
|
+
),
|
|
185
|
+
)
|
|
186
|
+
if _response.status_code == 500:
|
|
187
|
+
raise InternalServerError(
|
|
188
|
+
headers=dict(_response.headers),
|
|
189
|
+
body=typing.cast(
|
|
190
|
+
typing.Optional[typing.Any],
|
|
191
|
+
parse_obj_as(
|
|
192
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
193
|
+
object_=_response.json(),
|
|
194
|
+
),
|
|
195
|
+
),
|
|
196
|
+
)
|
|
197
|
+
_response_json = _response.json()
|
|
198
|
+
except JSONDecodeError:
|
|
199
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
200
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
201
|
+
|
|
94
202
|
def get(
|
|
95
203
|
self, asset_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
96
204
|
) -> HttpResponse[PublicAssetOut]:
|
|
@@ -238,6 +346,108 @@ class AsyncRawAssetsClient:
|
|
|
238
346
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
239
347
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
240
348
|
|
|
349
|
+
async def create_project(
|
|
350
|
+
self,
|
|
351
|
+
*,
|
|
352
|
+
title: str,
|
|
353
|
+
custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
354
|
+
description: typing.Optional[str] = OMIT,
|
|
355
|
+
parent_folder_id: typing.Optional[str] = OMIT,
|
|
356
|
+
project_type: typing.Optional[str] = OMIT,
|
|
357
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
358
|
+
) -> AsyncHttpResponse[CreateProjectResponseOut]:
|
|
359
|
+
"""
|
|
360
|
+
Create a new project with custom metadata. Projects can be typed (e.g., 'candidate', 'user', 'company') and include flexible custom metadata for storing additional information.
|
|
361
|
+
|
|
362
|
+
Parameters
|
|
363
|
+
----------
|
|
364
|
+
title : str
|
|
365
|
+
The project title
|
|
366
|
+
|
|
367
|
+
custom_metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
368
|
+
A flexible dictionary for storing custom metadata
|
|
369
|
+
|
|
370
|
+
description : typing.Optional[str]
|
|
371
|
+
Optional project description
|
|
372
|
+
|
|
373
|
+
parent_folder_id : typing.Optional[str]
|
|
374
|
+
Optional parent folder ID
|
|
375
|
+
|
|
376
|
+
project_type : typing.Optional[str]
|
|
377
|
+
User-defined project type (e.g., 'candidate', 'user', 'company')
|
|
378
|
+
|
|
379
|
+
request_options : typing.Optional[RequestOptions]
|
|
380
|
+
Request-specific configuration.
|
|
381
|
+
|
|
382
|
+
Returns
|
|
383
|
+
-------
|
|
384
|
+
AsyncHttpResponse[CreateProjectResponseOut]
|
|
385
|
+
Project created successfully
|
|
386
|
+
"""
|
|
387
|
+
_response = await self._client_wrapper.httpx_client.request(
|
|
388
|
+
"api/v0/assets/create_project",
|
|
389
|
+
method="POST",
|
|
390
|
+
json={
|
|
391
|
+
"custom_metadata": custom_metadata,
|
|
392
|
+
"description": description,
|
|
393
|
+
"parent_folder_id": parent_folder_id,
|
|
394
|
+
"project_type": project_type,
|
|
395
|
+
"title": title,
|
|
396
|
+
},
|
|
397
|
+
headers={
|
|
398
|
+
"content-type": "application/json",
|
|
399
|
+
},
|
|
400
|
+
request_options=request_options,
|
|
401
|
+
omit=OMIT,
|
|
402
|
+
)
|
|
403
|
+
try:
|
|
404
|
+
if 200 <= _response.status_code < 300:
|
|
405
|
+
_data = typing.cast(
|
|
406
|
+
CreateProjectResponseOut,
|
|
407
|
+
parse_obj_as(
|
|
408
|
+
type_=CreateProjectResponseOut, # type: ignore
|
|
409
|
+
object_=_response.json(),
|
|
410
|
+
),
|
|
411
|
+
)
|
|
412
|
+
return AsyncHttpResponse(response=_response, data=_data)
|
|
413
|
+
if _response.status_code == 400:
|
|
414
|
+
raise BadRequestError(
|
|
415
|
+
headers=dict(_response.headers),
|
|
416
|
+
body=typing.cast(
|
|
417
|
+
typing.Optional[typing.Any],
|
|
418
|
+
parse_obj_as(
|
|
419
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
420
|
+
object_=_response.json(),
|
|
421
|
+
),
|
|
422
|
+
),
|
|
423
|
+
)
|
|
424
|
+
if _response.status_code == 422:
|
|
425
|
+
raise UnprocessableEntityError(
|
|
426
|
+
headers=dict(_response.headers),
|
|
427
|
+
body=typing.cast(
|
|
428
|
+
typing.Optional[typing.Any],
|
|
429
|
+
parse_obj_as(
|
|
430
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
431
|
+
object_=_response.json(),
|
|
432
|
+
),
|
|
433
|
+
),
|
|
434
|
+
)
|
|
435
|
+
if _response.status_code == 500:
|
|
436
|
+
raise InternalServerError(
|
|
437
|
+
headers=dict(_response.headers),
|
|
438
|
+
body=typing.cast(
|
|
439
|
+
typing.Optional[typing.Any],
|
|
440
|
+
parse_obj_as(
|
|
441
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
442
|
+
object_=_response.json(),
|
|
443
|
+
),
|
|
444
|
+
),
|
|
445
|
+
)
|
|
446
|
+
_response_json = _response.json()
|
|
447
|
+
except JSONDecodeError:
|
|
448
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
449
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
450
|
+
|
|
241
451
|
async def get(
|
|
242
452
|
self, asset_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
243
453
|
) -> AsyncHttpResponse[PublicAssetOut]:
|
athena/core/client_wrapper.py
CHANGED
|
@@ -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.
|
|
25
|
+
"User-Agent": "athena-intelligence/0.1.264",
|
|
26
26
|
"X-Fern-Language": "Python",
|
|
27
27
|
"X-Fern-SDK-Name": "athena-intelligence",
|
|
28
|
-
"X-Fern-SDK-Version": "0.1.
|
|
28
|
+
"X-Fern-SDK-Version": "0.1.264",
|
|
29
29
|
**(self.get_custom_headers() or {}),
|
|
30
30
|
}
|
|
31
31
|
headers["X-API-KEY"] = self.api_key
|
athena/types/__init__.py
CHANGED
|
@@ -29,6 +29,7 @@ if typing.TYPE_CHECKING:
|
|
|
29
29
|
from .conversation_message import ConversationMessage
|
|
30
30
|
from .conversation_result import ConversationResult
|
|
31
31
|
from .create_new_sheet_tab_response import CreateNewSheetTabResponse
|
|
32
|
+
from .create_project_response_out import CreateProjectResponseOut
|
|
32
33
|
from .custom_agent_response import CustomAgentResponse
|
|
33
34
|
from .data_frame_request_out import DataFrameRequestOut
|
|
34
35
|
from .data_frame_request_out_columns_item import DataFrameRequestOutColumnsItem
|
|
@@ -103,6 +104,7 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
103
104
|
"ConversationMessage": ".conversation_message",
|
|
104
105
|
"ConversationResult": ".conversation_result",
|
|
105
106
|
"CreateNewSheetTabResponse": ".create_new_sheet_tab_response",
|
|
107
|
+
"CreateProjectResponseOut": ".create_project_response_out",
|
|
106
108
|
"CustomAgentResponse": ".custom_agent_response",
|
|
107
109
|
"DataFrameRequestOut": ".data_frame_request_out",
|
|
108
110
|
"DataFrameRequestOutColumnsItem": ".data_frame_request_out_columns_item",
|
|
@@ -199,6 +201,7 @@ __all__ = [
|
|
|
199
201
|
"ConversationMessage",
|
|
200
202
|
"ConversationResult",
|
|
201
203
|
"CreateNewSheetTabResponse",
|
|
204
|
+
"CreateProjectResponseOut",
|
|
202
205
|
"CustomAgentResponse",
|
|
203
206
|
"DataFrameRequestOut",
|
|
204
207
|
"DataFrameRequestOutColumnsItem",
|
|
@@ -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 CreateProjectResponseOut(UniversalBaseModel):
|
|
10
|
+
"""
|
|
11
|
+
Response model for project creation.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
asset_id: str = pydantic.Field()
|
|
15
|
+
"""
|
|
16
|
+
ID of the created project asset
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
|
|
20
|
+
"""
|
|
21
|
+
Custom metadata associated with the project
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
25
|
+
"""
|
|
26
|
+
Description of the project
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
project_type: typing.Optional[str] = pydantic.Field(default=None)
|
|
30
|
+
"""
|
|
31
|
+
Type of the project
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
title: str = pydantic.Field()
|
|
35
|
+
"""
|
|
36
|
+
Title of the created project
|
|
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 +1,4 @@
|
|
|
1
|
-
athena/__init__.py,sha256=
|
|
1
|
+
athena/__init__.py,sha256=q3oZ5WRxW45CNOLli6Ig2FBpBzM8H2jWZlTiCx0iJzo,9095
|
|
2
2
|
athena/agents/__init__.py,sha256=LqM1Kj7aFzYoFsB7xrYKPDJAnOWmcig1LNE4jAiWpJQ,1166
|
|
3
3
|
athena/agents/client.py,sha256=b3QvSCRsiHD6UREN7llGY946V-oZdKkhouQ6p_nH1j8,8044
|
|
4
4
|
athena/agents/drive/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
@@ -18,13 +18,13 @@ athena/aop/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
|
18
18
|
athena/aop/client.py,sha256=Fg7rNF1k78MIKDELy8GE-DfAaJvHFUUBG5haMR_Vefo,6758
|
|
19
19
|
athena/aop/raw_client.py,sha256=ZQRtNNirk1xfbkKHADxSCPB0UQjf4HO5l-6z7W936X8,18509
|
|
20
20
|
athena/assets/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
21
|
-
athena/assets/client.py,sha256=
|
|
22
|
-
athena/assets/raw_client.py,sha256=
|
|
21
|
+
athena/assets/client.py,sha256=mX1RmFXuSJm-1fQG_QHZJao7LFiSMzzFlqiwPMOv6S4,12319
|
|
22
|
+
athena/assets/raw_client.py,sha256=EZ7djDUZjqm52Dj1RD21qTIoUWjWSoW2sZzvXlW_sYU,21645
|
|
23
23
|
athena/base_client.py,sha256=IlYf1TLV3w-JZPATzyT-b5wSrjKm-fsT_3bC172GpVI,9576
|
|
24
24
|
athena/client.py,sha256=I-aFsGhcViOdOeaWayhMkaMkV5545Yz2Gb-BoVQvhE4,22317
|
|
25
25
|
athena/core/__init__.py,sha256=GkNNgA0CeqvpCzo2vVtAafE8YcnGV-VGtbU5op93lbc,3624
|
|
26
26
|
athena/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
|
|
27
|
-
athena/core/client_wrapper.py,sha256=
|
|
27
|
+
athena/core/client_wrapper.py,sha256=SVBGoFqJm_idDpflIorDuROqGZ61gmiYbWT3MDYuCDg,2392
|
|
28
28
|
athena/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
29
29
|
athena/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
30
30
|
athena/core/force_multipart.py,sha256=cH981xLy0kZVKiZZkFoeUjgJ2Zuq7KXB2aRAnmHzRDc,477
|
|
@@ -76,7 +76,7 @@ athena/tools/tasks/client.py,sha256=c_YZ7OjQNJmPKbeeXJznXj3zo5CRFSv02dLupAdHAyo,
|
|
|
76
76
|
athena/tools/tasks/raw_client.py,sha256=Mexzuf_HcRXWNlESDGQkHHv5tC2tAo-AX3PBSuSRO3U,3812
|
|
77
77
|
athena/tools/types/__init__.py,sha256=EBAoLXAl5YZCDYkI-YPJA0035ZRyGktyW4tspFXOQso,1180
|
|
78
78
|
athena/tools/types/tools_data_frame_request_columns_item.py,sha256=GA1FUlTV_CfSc-KToTAwFf4Exl0rr4fsweVZupztjw0,138
|
|
79
|
-
athena/types/__init__.py,sha256=
|
|
79
|
+
athena/types/__init__.py,sha256=RhzkA2zdzq7Scbxe9XO6S5q__4WgOqSU6Kn1UdBYPCs,10451
|
|
80
80
|
athena/types/aop_async_execute_response_out.py,sha256=Ggs9j5JvLCMaVwaHNyY3whA5gcUffLqc4PwuxYWI-38,1642
|
|
81
81
|
athena/types/aop_execute_request_in.py,sha256=mEsMKyNN6e90gZra733lJDC6z0bZWdc72af3B-Z5aqE,889
|
|
82
82
|
athena/types/aop_execute_response_out.py,sha256=_w6_WERRgGEVI0O_4qRfVZPLpcaa8yihWgwB4ZV0Zs8,1847
|
|
@@ -100,6 +100,7 @@ athena/types/conversation_asset_info.py,sha256=SbsWJuGwic6nliEu9ykW-q2A7SfnRt4U3
|
|
|
100
100
|
athena/types/conversation_message.py,sha256=bJsO0T9ktciCAys28ESQJQNfY-29pI3lKxPhRb7D4ic,1084
|
|
101
101
|
athena/types/conversation_result.py,sha256=EwC27cGZWzRyrJxlyKrevndnOSDBM0DkaOUu7foeYeI,1851
|
|
102
102
|
athena/types/create_new_sheet_tab_response.py,sha256=RF8iOL3mkSc3pY0pqQhvw9IdnncxDC_-XdSUhqPODsM,892
|
|
103
|
+
athena/types/create_project_response_out.py,sha256=iMxs8dnwoNraOYmsVYm93TyXyAeSomUdWN5j720orxc,1156
|
|
103
104
|
athena/types/custom_agent_response.py,sha256=hzw1s7mcCI9V58l5OqK4Q59AGF_NctSx5scjJeVWckk,684
|
|
104
105
|
athena/types/data_frame_request_out.py,sha256=wyVIEEI6mqSoH6SyXTQpzLCJOWwsAlUvG9iAVlNuNOU,1076
|
|
105
106
|
athena/types/data_frame_request_out_columns_item.py,sha256=9cjzciFv6C8n8Griytt_q_8ovkzHViS5tvUcMDfkfKE,143
|
|
@@ -145,6 +146,6 @@ athena/types/thread_status_response_out.py,sha256=UuSAvs9woL1i8RwvVRKsFUufN4A9jO
|
|
|
145
146
|
athena/types/type.py,sha256=Gvs56nvBMPcQpOZkfPocGNNb7S05PuINianbT309QAQ,146
|
|
146
147
|
athena/types/wrap_strategy.py,sha256=ykPFCr91HGvzIk9BRppW_UBWoUamFxDhLO_ETzQgVKI,164
|
|
147
148
|
athena/version.py,sha256=tnXYUugs9zF_pkVdem-QBorKSuhEOOuetkR57dADDxE,86
|
|
148
|
-
athena_intelligence-0.1.
|
|
149
|
-
athena_intelligence-0.1.
|
|
150
|
-
athena_intelligence-0.1.
|
|
149
|
+
athena_intelligence-0.1.264.dist-info/METADATA,sha256=Evl9G3J60mj6n-_j-L8G_TQNNyJlI3jlaFkgQIXGjVU,5440
|
|
150
|
+
athena_intelligence-0.1.264.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
151
|
+
athena_intelligence-0.1.264.dist-info/RECORD,,
|
|
File without changes
|