athena-intelligence 0.1.203__tar.gz → 0.1.205__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of athena-intelligence might be problematic. Click here for more details.
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/PKG-INFO +1 -1
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/pyproject.toml +1 -1
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/__init__.py +8 -3
- athena_intelligence-0.1.205/src/athena/aop/client.py +201 -0
- athena_intelligence-0.1.205/src/athena/aop/raw_client.py +433 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/base_client.py +3 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/core/client_wrapper.py +2 -2
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/errors/bad_request_error.py +1 -2
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/tools/raw_client.py +8 -9
- athena_intelligence-0.1.205/src/athena/tools/tasks/__init__.py +4 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/__init__.py +6 -2
- athena_intelligence-0.1.205/src/athena/types/aop_async_execute_response_out.py +76 -0
- athena_intelligence-0.1.205/src/athena/types/aop_execute_request_in.py +31 -0
- athena_intelligence-0.1.205/src/athena/types/aop_execute_response_out.py +76 -0
- athena_intelligence-0.1.203/src/athena/types/parent_folder_error.py +0 -19
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/README.md +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/agents/__init__.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/agents/client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/agents/drive/__init__.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/agents/drive/client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/agents/drive/raw_client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/agents/general/__init__.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/agents/general/client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/agents/general/raw_client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/agents/raw_client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/agents/research/__init__.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/agents/research/client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/agents/research/raw_client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/agents/sql/__init__.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/agents/sql/client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/agents/sql/raw_client.py +0 -0
- {athena_intelligence-0.1.203/src/athena/assets → athena_intelligence-0.1.205/src/athena/aop}/__init__.py +0 -0
- {athena_intelligence-0.1.203/src/athena/tools/calendar → athena_intelligence-0.1.205/src/athena/assets}/__init__.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/assets/client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/assets/raw_client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/core/__init__.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/core/api_error.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/core/datetime_utils.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/core/file.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/core/force_multipart.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/core/http_client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/core/http_response.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/core/jsonable_encoder.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/core/pydantic_utilities.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/core/query_encoder.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/core/remove_none_from_dict.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/core/request_options.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/core/serialization.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/environment.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/errors/__init__.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/errors/content_too_large_error.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/errors/internal_server_error.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/errors/not_found_error.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/errors/unauthorized_error.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/errors/unprocessable_entity_error.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/errors/unsupported_media_type_error.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/py.typed +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/query/__init__.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/query/client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/query/raw_client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/query/types/__init__.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/query/types/query_execute_request_database_asset_ids.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/tools/__init__.py +0 -0
- {athena_intelligence-0.1.203/src/athena/tools/email → athena_intelligence-0.1.205/src/athena/tools/calendar}/__init__.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/tools/calendar/client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/tools/calendar/raw_client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/tools/client.py +0 -0
- {athena_intelligence-0.1.203/src/athena/tools/sheets → athena_intelligence-0.1.205/src/athena/tools/email}/__init__.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/tools/email/client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/tools/email/raw_client.py +0 -0
- {athena_intelligence-0.1.203/src/athena/tools/structured_data_extractor → athena_intelligence-0.1.205/src/athena/tools/sheets}/__init__.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/tools/sheets/client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/tools/sheets/raw_client.py +0 -0
- {athena_intelligence-0.1.203/src/athena/tools/tasks → athena_intelligence-0.1.205/src/athena/tools/structured_data_extractor}/__init__.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/tools/structured_data_extractor/client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/tools/structured_data_extractor/raw_client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/tools/tasks/client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/tools/tasks/raw_client.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/tools/types/__init__.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/tools/types/tools_data_frame_request_columns_item.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/asset_content_request_out.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/asset_node.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/asset_not_found_error.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/asset_screenshot_response_out.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/chunk.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/chunk_content_item.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/chunk_result.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/chunk_result_chunk_id.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/content.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/create_new_sheet_tab_response.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/custom_agent_response.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/data_frame_request_out.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/data_frame_request_out_columns_item.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/data_frame_request_out_data_item_item.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/data_frame_request_out_index_item.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/data_frame_unknown_format_error.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/document_chunk.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/drive_agent_response.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/file_chunk_request_out.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/file_too_large_error.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/folder_response.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/general_agent_config.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/general_agent_config_enabled_tools_item.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/general_agent_request.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/general_agent_response.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/general_agent_response_message.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/general_agent_response_message_kwargs.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/get_table_response.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/id.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/image_url_content.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/input_message.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/input_message_content_item.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/paginated_assets_out.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/prompt_message.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/public_asset_out.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/research_agent_response.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/save_asset_request_out.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/sheet_operation_response.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/sql_agent_response.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/structured_data_extractor_response.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/text_content.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/types/type.py +0 -0
- {athena_intelligence-0.1.203 → athena_intelligence-0.1.205}/src/athena/version.py +0 -0
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
5
|
from .types import (
|
|
6
|
+
AopAsyncExecuteResponseOut,
|
|
7
|
+
AopExecuteRequestIn,
|
|
8
|
+
AopExecuteResponseOut,
|
|
6
9
|
AssetContentRequestOut,
|
|
7
10
|
AssetNode,
|
|
8
11
|
AssetNotFoundError,
|
|
@@ -40,7 +43,6 @@ from .types import (
|
|
|
40
43
|
InputMessageContentItem_ImageUrl,
|
|
41
44
|
InputMessageContentItem_Text,
|
|
42
45
|
PaginatedAssetsOut,
|
|
43
|
-
ParentFolderError,
|
|
44
46
|
PromptMessage,
|
|
45
47
|
PublicAssetOut,
|
|
46
48
|
ResearchAgentResponse,
|
|
@@ -60,7 +62,7 @@ from .errors import (
|
|
|
60
62
|
UnprocessableEntityError,
|
|
61
63
|
UnsupportedMediaTypeError,
|
|
62
64
|
)
|
|
63
|
-
from . import agents, assets, query, tools
|
|
65
|
+
from . import agents, aop, assets, query, tools
|
|
64
66
|
from .client import AsyncAthena, Athena
|
|
65
67
|
from .environment import AthenaEnvironment
|
|
66
68
|
from .query import QueryExecuteRequestDatabaseAssetIds
|
|
@@ -68,6 +70,9 @@ from .tools import ToolsDataFrameRequestColumnsItem
|
|
|
68
70
|
from .version import __version__
|
|
69
71
|
|
|
70
72
|
__all__ = [
|
|
73
|
+
"AopAsyncExecuteResponseOut",
|
|
74
|
+
"AopExecuteRequestIn",
|
|
75
|
+
"AopExecuteResponseOut",
|
|
71
76
|
"AssetContentRequestOut",
|
|
72
77
|
"AssetNode",
|
|
73
78
|
"AssetNotFoundError",
|
|
@@ -112,7 +117,6 @@ __all__ = [
|
|
|
112
117
|
"InternalServerError",
|
|
113
118
|
"NotFoundError",
|
|
114
119
|
"PaginatedAssetsOut",
|
|
115
|
-
"ParentFolderError",
|
|
116
120
|
"PromptMessage",
|
|
117
121
|
"PublicAssetOut",
|
|
118
122
|
"QueryExecuteRequestDatabaseAssetIds",
|
|
@@ -129,6 +133,7 @@ __all__ = [
|
|
|
129
133
|
"UnsupportedMediaTypeError",
|
|
130
134
|
"__version__",
|
|
131
135
|
"agents",
|
|
136
|
+
"aop",
|
|
132
137
|
"assets",
|
|
133
138
|
"query",
|
|
134
139
|
"tools",
|
|
@@ -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
|
+
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
|
+
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
|