athena-intelligence 0.1.202__tar.gz → 0.1.338__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.
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/PKG-INFO +1 -1
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/pyproject.toml +1 -1
- athena_intelligence-0.1.338/src/athena/__init__.py +297 -0
- athena_intelligence-0.1.338/src/athena/agents/__init__.py +39 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/agents/client.py +81 -18
- athena_intelligence-0.1.338/src/athena/aop/client.py +201 -0
- athena_intelligence-0.1.338/src/athena/aop/raw_client.py +432 -0
- athena_intelligence-0.1.338/src/athena/assets/client.py +501 -0
- athena_intelligence-0.1.338/src/athena/assets/raw_client.py +726 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/base_client.py +118 -12
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/client.py +23 -21
- athena_intelligence-0.1.338/src/athena/core/__init__.py +105 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/core/client_wrapper.py +2 -2
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/core/force_multipart.py +4 -2
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/core/http_response.py +1 -1
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/core/pydantic_utilities.py +5 -2
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/environment.py +0 -1
- athena_intelligence-0.1.338/src/athena/errors/__init__.py +56 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/errors/bad_request_error.py +1 -2
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/errors/not_found_error.py +1 -2
- athena_intelligence-0.1.338/src/athena/query/__init__.py +34 -0
- athena_intelligence-0.1.338/src/athena/query/types/__init__.py +36 -0
- athena_intelligence-0.1.338/src/athena/threads/client.py +114 -0
- athena_intelligence-0.1.338/src/athena/threads/raw_client.py +192 -0
- athena_intelligence-0.1.338/src/athena/tools/__init__.py +52 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/tools/client.py +161 -31
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/tools/raw_client.py +44 -43
- athena_intelligence-0.1.338/src/athena/tools/sheets/__init__.py +34 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/tools/sheets/client.py +293 -96
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/tools/sheets/raw_client.py +362 -74
- athena_intelligence-0.1.338/src/athena/tools/sheets/types/__init__.py +36 -0
- athena_intelligence-0.1.338/src/athena/tools/sheets/types/update_sheet_range_request_values_item_item.py +5 -0
- athena_intelligence-0.1.338/src/athena/tools/tasks/__init__.py +4 -0
- athena_intelligence-0.1.338/src/athena/tools/types/__init__.py +34 -0
- athena_intelligence-0.1.338/src/athena/types/__init__.py +242 -0
- athena_intelligence-0.1.338/src/athena/types/aop_async_execute_response_out.py +71 -0
- athena_intelligence-0.1.338/src/athena/types/aop_execute_request_in.py +31 -0
- athena_intelligence-0.1.338/src/athena/types/aop_execute_response_out.py +77 -0
- athena_intelligence-0.1.338/src/athena/types/border_model.py +32 -0
- athena_intelligence-0.1.338/src/athena/types/border_style.py +7 -0
- athena_intelligence-0.1.338/src/athena/types/borders_model.py +58 -0
- athena_intelligence-0.1.338/src/athena/types/cell_format.py +60 -0
- athena_intelligence-0.1.338/src/athena/types/cell_format_horizontal_alignment.py +5 -0
- athena_intelligence-0.1.338/src/athena/types/cell_format_vertical_alignment.py +5 -0
- athena_intelligence-0.1.338/src/athena/types/conversation_asset_info.py +116 -0
- athena_intelligence-0.1.338/src/athena/types/conversation_message.py +42 -0
- athena_intelligence-0.1.338/src/athena/types/conversation_result.py +67 -0
- athena_intelligence-0.1.338/src/athena/types/creatable_asset_type.py +5 -0
- athena_intelligence-0.1.338/src/athena/types/create_asset_response_out.py +46 -0
- athena_intelligence-0.1.338/src/athena/types/create_project_response_out.py +51 -0
- athena_intelligence-0.1.338/src/athena/types/dimension_properties.py +49 -0
- athena_intelligence-0.1.338/src/athena/types/get_table_response.py +42 -0
- athena_intelligence-0.1.338/src/athena/types/grid_range.py +39 -0
- athena_intelligence-0.1.338/src/athena/types/number_format_model.py +28 -0
- athena_intelligence-0.1.338/src/athena/types/number_format_type.py +21 -0
- athena_intelligence-0.1.338/src/athena/types/sheet.py +83 -0
- athena_intelligence-0.1.338/src/athena/types/table_row_data.py +5 -0
- athena_intelligence-0.1.338/src/athena/types/text_format_model.py +37 -0
- athena_intelligence-0.1.338/src/athena/types/textrotation.py +5 -0
- athena_intelligence-0.1.202/src/athena/types/parent_folder_error.py → athena_intelligence-0.1.338/src/athena/types/theme_color.py +3 -2
- athena_intelligence-0.1.338/src/athena/types/thread_status_response_out.py +52 -0
- athena_intelligence-0.1.338/src/athena/types/wrap_strategy.py +5 -0
- athena_intelligence-0.1.202/src/athena/__init__.py +0 -133
- athena_intelligence-0.1.202/src/athena/agents/__init__.py +0 -7
- athena_intelligence-0.1.202/src/athena/assets/client.py +0 -144
- athena_intelligence-0.1.202/src/athena/assets/raw_client.py +0 -164
- athena_intelligence-0.1.202/src/athena/core/__init__.py +0 -52
- athena_intelligence-0.1.202/src/athena/errors/__init__.py +0 -21
- athena_intelligence-0.1.202/src/athena/query/__init__.py +0 -7
- athena_intelligence-0.1.202/src/athena/query/types/__init__.py +0 -7
- athena_intelligence-0.1.202/src/athena/tools/__init__.py +0 -8
- athena_intelligence-0.1.202/src/athena/tools/types/__init__.py +0 -7
- athena_intelligence-0.1.202/src/athena/types/__init__.py +0 -99
- athena_intelligence-0.1.202/src/athena/types/asset_not_found_error.py +0 -19
- athena_intelligence-0.1.202/src/athena/types/document_chunk.py +0 -24
- athena_intelligence-0.1.202/src/athena/types/file_chunk_request_out.py +0 -24
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/README.md +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/agents/drive/__init__.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/agents/drive/client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/agents/drive/raw_client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/agents/general/__init__.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/agents/general/client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/agents/general/raw_client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/agents/raw_client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/agents/research/__init__.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/agents/research/client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/agents/research/raw_client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/agents/sql/__init__.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/agents/sql/client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/agents/sql/raw_client.py +0 -0
- {athena_intelligence-0.1.202/src/athena/assets → athena_intelligence-0.1.338/src/athena/aop}/__init__.py +0 -0
- {athena_intelligence-0.1.202/src/athena/tools/calendar → athena_intelligence-0.1.338/src/athena/assets}/__init__.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/core/api_error.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/core/datetime_utils.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/core/file.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/core/http_client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/core/jsonable_encoder.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/core/query_encoder.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/core/remove_none_from_dict.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/core/request_options.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/core/serialization.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/errors/content_too_large_error.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/errors/internal_server_error.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/errors/unauthorized_error.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/errors/unprocessable_entity_error.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/errors/unsupported_media_type_error.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/py.typed +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/query/client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/query/raw_client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/query/types/query_execute_request_database_asset_ids.py +0 -0
- {athena_intelligence-0.1.202/src/athena/tools/email → athena_intelligence-0.1.338/src/athena/threads}/__init__.py +0 -0
- {athena_intelligence-0.1.202/src/athena/tools/sheets → athena_intelligence-0.1.338/src/athena/tools/calendar}/__init__.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/tools/calendar/client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/tools/calendar/raw_client.py +0 -0
- {athena_intelligence-0.1.202/src/athena/tools/structured_data_extractor → athena_intelligence-0.1.338/src/athena/tools/email}/__init__.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/tools/email/client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/tools/email/raw_client.py +0 -0
- {athena_intelligence-0.1.202/src/athena/tools/tasks → athena_intelligence-0.1.338/src/athena/tools/structured_data_extractor}/__init__.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/tools/structured_data_extractor/client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/tools/structured_data_extractor/raw_client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/tools/tasks/client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/tools/tasks/raw_client.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/tools/types/tools_data_frame_request_columns_item.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/asset_content_request_out.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/asset_node.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/asset_screenshot_response_out.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/chunk.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/chunk_content_item.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/chunk_result.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/chunk_result_chunk_id.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/content.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/create_new_sheet_tab_response.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/custom_agent_response.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/data_frame_request_out.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/data_frame_request_out_columns_item.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/data_frame_request_out_data_item_item.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/data_frame_request_out_index_item.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/data_frame_unknown_format_error.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/drive_agent_response.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/file_too_large_error.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/folder_response.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/general_agent_config.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/general_agent_config_enabled_tools_item.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/general_agent_request.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/general_agent_response.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/general_agent_response_message.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/general_agent_response_message_kwargs.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/id.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/image_url_content.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/input_message.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/input_message_content_item.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/paginated_assets_out.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/prompt_message.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/public_asset_out.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/research_agent_response.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/save_asset_request_out.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/sheet_operation_response.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/sql_agent_response.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/structured_data_extractor_response.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/text_content.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/types/type.py +0 -0
- {athena_intelligence-0.1.202 → athena_intelligence-0.1.338}/src/athena/version.py +0 -0
|
@@ -0,0 +1,297 @@
|
|
|
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 (
|
|
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
|
+
|
|
207
|
+
|
|
208
|
+
__all__ = [
|
|
209
|
+
"AopAsyncExecuteResponseOut",
|
|
210
|
+
"AopExecuteRequestIn",
|
|
211
|
+
"AopExecuteResponseOut",
|
|
212
|
+
"AssetContentRequestOut",
|
|
213
|
+
"AssetNode",
|
|
214
|
+
"AssetScreenshotResponseOut",
|
|
215
|
+
"AsyncAthena",
|
|
216
|
+
"Athena",
|
|
217
|
+
"AthenaEnvironment",
|
|
218
|
+
"BadRequestError",
|
|
219
|
+
"BorderModel",
|
|
220
|
+
"BorderStyle",
|
|
221
|
+
"BordersModel",
|
|
222
|
+
"CellFormat",
|
|
223
|
+
"CellFormatHorizontalAlignment",
|
|
224
|
+
"CellFormatVerticalAlignment",
|
|
225
|
+
"Chunk",
|
|
226
|
+
"ChunkContentItem",
|
|
227
|
+
"ChunkContentItem_ImageUrl",
|
|
228
|
+
"ChunkContentItem_Text",
|
|
229
|
+
"ChunkResult",
|
|
230
|
+
"ChunkResultChunkId",
|
|
231
|
+
"Content",
|
|
232
|
+
"ContentTooLargeError",
|
|
233
|
+
"ConversationAssetInfo",
|
|
234
|
+
"ConversationMessage",
|
|
235
|
+
"ConversationResult",
|
|
236
|
+
"CreatableAssetType",
|
|
237
|
+
"CreateAssetResponseOut",
|
|
238
|
+
"CreateNewSheetTabResponse",
|
|
239
|
+
"CreateProjectResponseOut",
|
|
240
|
+
"CustomAgentResponse",
|
|
241
|
+
"DataFrameRequestOut",
|
|
242
|
+
"DataFrameRequestOutColumnsItem",
|
|
243
|
+
"DataFrameRequestOutDataItemItem",
|
|
244
|
+
"DataFrameRequestOutIndexItem",
|
|
245
|
+
"DataFrameUnknownFormatError",
|
|
246
|
+
"DimensionProperties",
|
|
247
|
+
"DriveAgentResponse",
|
|
248
|
+
"FileTooLargeError",
|
|
249
|
+
"FolderResponse",
|
|
250
|
+
"GeneralAgentConfig",
|
|
251
|
+
"GeneralAgentConfigEnabledToolsItem",
|
|
252
|
+
"GeneralAgentRequest",
|
|
253
|
+
"GeneralAgentResponse",
|
|
254
|
+
"GeneralAgentResponseMessage",
|
|
255
|
+
"GeneralAgentResponseMessageKwargs",
|
|
256
|
+
"GetTableResponse",
|
|
257
|
+
"GridRange",
|
|
258
|
+
"Id",
|
|
259
|
+
"ImageUrlContent",
|
|
260
|
+
"InputMessage",
|
|
261
|
+
"InputMessageContentItem",
|
|
262
|
+
"InputMessageContentItem_ImageUrl",
|
|
263
|
+
"InputMessageContentItem_Text",
|
|
264
|
+
"InternalServerError",
|
|
265
|
+
"NotFoundError",
|
|
266
|
+
"NumberFormatModel",
|
|
267
|
+
"NumberFormatType",
|
|
268
|
+
"PaginatedAssetsOut",
|
|
269
|
+
"PromptMessage",
|
|
270
|
+
"PublicAssetOut",
|
|
271
|
+
"QueryExecuteRequestDatabaseAssetIds",
|
|
272
|
+
"ResearchAgentResponse",
|
|
273
|
+
"SaveAssetRequestOut",
|
|
274
|
+
"Sheet",
|
|
275
|
+
"SheetOperationResponse",
|
|
276
|
+
"SqlAgentResponse",
|
|
277
|
+
"StructuredDataExtractorResponse",
|
|
278
|
+
"TableRowData",
|
|
279
|
+
"TextContent",
|
|
280
|
+
"TextFormatModel",
|
|
281
|
+
"Textrotation",
|
|
282
|
+
"ThemeColor",
|
|
283
|
+
"ThreadStatusResponseOut",
|
|
284
|
+
"ToolsDataFrameRequestColumnsItem",
|
|
285
|
+
"Type",
|
|
286
|
+
"UnauthorizedError",
|
|
287
|
+
"UnprocessableEntityError",
|
|
288
|
+
"UnsupportedMediaTypeError",
|
|
289
|
+
"WrapStrategy",
|
|
290
|
+
"__version__",
|
|
291
|
+
"agents",
|
|
292
|
+
"aop",
|
|
293
|
+
"assets",
|
|
294
|
+
"query",
|
|
295
|
+
"threads",
|
|
296
|
+
"tools",
|
|
297
|
+
]
|
|
@@ -0,0 +1,39 @@
|
|
|
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 . 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
|
+
|
|
38
|
+
|
|
39
|
+
__all__ = ["drive", "general", "research", "sql"]
|
|
@@ -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
|
|
@@ -0,0 +1,201 @@
|
|
|
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.aop_async_execute_response_out import AopAsyncExecuteResponseOut
|
|
8
|
+
from ..types.aop_execute_request_in import AopExecuteRequestIn
|
|
9
|
+
from ..types.aop_execute_response_out import AopExecuteResponseOut
|
|
10
|
+
from .raw_client import AsyncRawAopClient, RawAopClient
|
|
11
|
+
|
|
12
|
+
# this is used as the default value for optional parameters
|
|
13
|
+
OMIT = typing.cast(typing.Any, ...)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class AopClient:
|
|
17
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
18
|
+
self._raw_client = RawAopClient(client_wrapper=client_wrapper)
|
|
19
|
+
|
|
20
|
+
@property
|
|
21
|
+
def with_raw_response(self) -> RawAopClient:
|
|
22
|
+
"""
|
|
23
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
24
|
+
|
|
25
|
+
Returns
|
|
26
|
+
-------
|
|
27
|
+
RawAopClient
|
|
28
|
+
"""
|
|
29
|
+
return self._raw_client
|
|
30
|
+
|
|
31
|
+
def execute(
|
|
32
|
+
self, *, request: AopExecuteRequestIn, request_options: typing.Optional[RequestOptions] = None
|
|
33
|
+
) -> AopExecuteResponseOut:
|
|
34
|
+
"""
|
|
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
|
+
|
|
37
|
+
Parameters
|
|
38
|
+
----------
|
|
39
|
+
request : AopExecuteRequestIn
|
|
40
|
+
|
|
41
|
+
request_options : typing.Optional[RequestOptions]
|
|
42
|
+
Request-specific configuration.
|
|
43
|
+
|
|
44
|
+
Returns
|
|
45
|
+
-------
|
|
46
|
+
AopExecuteResponseOut
|
|
47
|
+
AOP execution started successfully
|
|
48
|
+
|
|
49
|
+
Examples
|
|
50
|
+
--------
|
|
51
|
+
from athena import AopExecuteRequestIn, Athena
|
|
52
|
+
|
|
53
|
+
client = Athena(
|
|
54
|
+
api_key="YOUR_API_KEY",
|
|
55
|
+
)
|
|
56
|
+
client.aop.execute(
|
|
57
|
+
request=AopExecuteRequestIn(
|
|
58
|
+
asset_id="asset_9249292-d118-42d3-95b4-00eccfe0754f",
|
|
59
|
+
user_inputs={"company": "Acme Corp", "quarter": "Q1 2024"},
|
|
60
|
+
),
|
|
61
|
+
)
|
|
62
|
+
"""
|
|
63
|
+
_response = self._raw_client.execute(request=request, request_options=request_options)
|
|
64
|
+
return _response.data
|
|
65
|
+
|
|
66
|
+
def execute_async(
|
|
67
|
+
self, *, request: AopExecuteRequestIn, request_options: typing.Optional[RequestOptions] = None
|
|
68
|
+
) -> AopAsyncExecuteResponseOut:
|
|
69
|
+
"""
|
|
70
|
+
Start execution of an Agent Operating Procedure (AOP) asset asynchronously. Returns immediately with a thread_id for tracking execution progress without waiting for completion.
|
|
71
|
+
|
|
72
|
+
Parameters
|
|
73
|
+
----------
|
|
74
|
+
request : AopExecuteRequestIn
|
|
75
|
+
|
|
76
|
+
request_options : typing.Optional[RequestOptions]
|
|
77
|
+
Request-specific configuration.
|
|
78
|
+
|
|
79
|
+
Returns
|
|
80
|
+
-------
|
|
81
|
+
AopAsyncExecuteResponseOut
|
|
82
|
+
AOP execution started successfully
|
|
83
|
+
|
|
84
|
+
Examples
|
|
85
|
+
--------
|
|
86
|
+
from athena import AopExecuteRequestIn, Athena
|
|
87
|
+
|
|
88
|
+
client = Athena(
|
|
89
|
+
api_key="YOUR_API_KEY",
|
|
90
|
+
)
|
|
91
|
+
client.aop.execute_async(
|
|
92
|
+
request=AopExecuteRequestIn(
|
|
93
|
+
asset_id="asset_9249292-d118-42d3-95b4-00eccfe0754f",
|
|
94
|
+
user_inputs={"company": "Acme Corp", "quarter": "Q1 2024"},
|
|
95
|
+
),
|
|
96
|
+
)
|
|
97
|
+
"""
|
|
98
|
+
_response = self._raw_client.execute_async(request=request, request_options=request_options)
|
|
99
|
+
return _response.data
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
class AsyncAopClient:
|
|
103
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
104
|
+
self._raw_client = AsyncRawAopClient(client_wrapper=client_wrapper)
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def with_raw_response(self) -> AsyncRawAopClient:
|
|
108
|
+
"""
|
|
109
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
110
|
+
|
|
111
|
+
Returns
|
|
112
|
+
-------
|
|
113
|
+
AsyncRawAopClient
|
|
114
|
+
"""
|
|
115
|
+
return self._raw_client
|
|
116
|
+
|
|
117
|
+
async def execute(
|
|
118
|
+
self, *, request: AopExecuteRequestIn, request_options: typing.Optional[RequestOptions] = None
|
|
119
|
+
) -> AopExecuteResponseOut:
|
|
120
|
+
"""
|
|
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
|
+
|
|
123
|
+
Parameters
|
|
124
|
+
----------
|
|
125
|
+
request : AopExecuteRequestIn
|
|
126
|
+
|
|
127
|
+
request_options : typing.Optional[RequestOptions]
|
|
128
|
+
Request-specific configuration.
|
|
129
|
+
|
|
130
|
+
Returns
|
|
131
|
+
-------
|
|
132
|
+
AopExecuteResponseOut
|
|
133
|
+
AOP execution started successfully
|
|
134
|
+
|
|
135
|
+
Examples
|
|
136
|
+
--------
|
|
137
|
+
import asyncio
|
|
138
|
+
|
|
139
|
+
from athena import AopExecuteRequestIn, AsyncAthena
|
|
140
|
+
|
|
141
|
+
client = AsyncAthena(
|
|
142
|
+
api_key="YOUR_API_KEY",
|
|
143
|
+
)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
async def main() -> None:
|
|
147
|
+
await client.aop.execute(
|
|
148
|
+
request=AopExecuteRequestIn(
|
|
149
|
+
asset_id="asset_9249292-d118-42d3-95b4-00eccfe0754f",
|
|
150
|
+
user_inputs={"company": "Acme Corp", "quarter": "Q1 2024"},
|
|
151
|
+
),
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
asyncio.run(main())
|
|
156
|
+
"""
|
|
157
|
+
_response = await self._raw_client.execute(request=request, request_options=request_options)
|
|
158
|
+
return _response.data
|
|
159
|
+
|
|
160
|
+
async def execute_async(
|
|
161
|
+
self, *, request: AopExecuteRequestIn, request_options: typing.Optional[RequestOptions] = None
|
|
162
|
+
) -> AopAsyncExecuteResponseOut:
|
|
163
|
+
"""
|
|
164
|
+
Start execution of an Agent Operating Procedure (AOP) asset asynchronously. Returns immediately with a thread_id for tracking execution progress without waiting for completion.
|
|
165
|
+
|
|
166
|
+
Parameters
|
|
167
|
+
----------
|
|
168
|
+
request : AopExecuteRequestIn
|
|
169
|
+
|
|
170
|
+
request_options : typing.Optional[RequestOptions]
|
|
171
|
+
Request-specific configuration.
|
|
172
|
+
|
|
173
|
+
Returns
|
|
174
|
+
-------
|
|
175
|
+
AopAsyncExecuteResponseOut
|
|
176
|
+
AOP execution started successfully
|
|
177
|
+
|
|
178
|
+
Examples
|
|
179
|
+
--------
|
|
180
|
+
import asyncio
|
|
181
|
+
|
|
182
|
+
from athena import AopExecuteRequestIn, AsyncAthena
|
|
183
|
+
|
|
184
|
+
client = AsyncAthena(
|
|
185
|
+
api_key="YOUR_API_KEY",
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
async def main() -> None:
|
|
190
|
+
await client.aop.execute_async(
|
|
191
|
+
request=AopExecuteRequestIn(
|
|
192
|
+
asset_id="asset_9249292-d118-42d3-95b4-00eccfe0754f",
|
|
193
|
+
user_inputs={"company": "Acme Corp", "quarter": "Q1 2024"},
|
|
194
|
+
),
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
asyncio.run(main())
|
|
199
|
+
"""
|
|
200
|
+
_response = await self._raw_client.execute_async(request=request, request_options=request_options)
|
|
201
|
+
return _response.data
|