athena-intelligence 0.1.82__tar.gz → 0.1.83__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.82 → athena_intelligence-0.1.83}/PKG-INFO +1 -1
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/pyproject.toml +3 -1
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/base_client.py +40 -18
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/chain/client.py +68 -28
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/core/client_wrapper.py +1 -1
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/dataset/client.py +32 -10
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/message/client.py +60 -24
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/query/client.py +28 -10
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/report/client.py +28 -10
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/search/client.py +36 -18
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/snippet/client.py +58 -18
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/tools/client.py +250 -100
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/upload/client.py +28 -8
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/workflow/client.py +26 -8
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/README.md +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/__init__.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/chain/__init__.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/client.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/core/__init__.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/core/api_error.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/core/datetime_utils.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/core/file.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/core/http_client.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/core/jsonable_encoder.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/core/pydantic_utilities.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/core/remove_none_from_dict.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/core/request_options.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/dataset/__init__.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/environment.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/errors/__init__.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/errors/internal_server_error.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/errors/not_found_error.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/errors/unprocessable_entity_error.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/errors/unsupported_media_type_error.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/message/__init__.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/polling_message_client.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/py.typed +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/query/__init__.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/report/__init__.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/search/__init__.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/snippet/__init__.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/tools/__init__.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/tools/types/__init__.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/tools/types/tools_data_frame_request_columns_item.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/__init__.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/convert_pdf_to_sheet_out.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/data_frame_parsing_error.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/data_frame_request_out.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/data_frame_request_out_columns_item.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/data_frame_request_out_data_item_item.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/data_frame_request_out_index_item.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/data_frame_unknown_format_error.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/dataset.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/document.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/excecute_tool_first_workflow_out.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/file_data_response.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/file_fetch_error.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/filter_model.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/filter_operator.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/firecrawl_scrape_url_data_reponse_dto.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/firecrawl_scrape_url_metadata.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/get_datasets_response.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/get_snippet_out.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/get_snippets_response.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/http_validation_error.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/langchain_documents_request_out.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/llm_model.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/map_reduce_chain_out.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/message_out.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/message_out_dto.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/model.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/publish_formats.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/query_model.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/report.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/researcher_out.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/semantic_query_out.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/snippet.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/sql_results.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/status_enum.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/structured_parse_result.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/time_dimension_model.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/tools.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/upload_documents_out.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/url_result.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/validation_error.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/validation_error_loc_item.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/types/workflow_status_out.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/upload/__init__.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/version.py +0 -0
- {athena_intelligence-0.1.82 → athena_intelligence-0.1.83}/src/athena/workflow/__init__.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "athena-intelligence"
|
3
|
-
version = "0.1.
|
3
|
+
version = "0.1.83"
|
4
4
|
description = ""
|
5
5
|
readme = "README.md"
|
6
6
|
authors = []
|
@@ -20,6 +20,8 @@ mypy = "1.9.0"
|
|
20
20
|
pytest = "^7.4.0"
|
21
21
|
pytest-asyncio = "^0.23.5"
|
22
22
|
python-dateutil = "^2.9.0"
|
23
|
+
pandas = ">= 1.5.3"
|
24
|
+
pandas-stubs = ">= 1.5.3"
|
23
25
|
|
24
26
|
[tool.pytest.ini_options]
|
25
27
|
testpaths = [ "tests" ]
|
@@ -22,21 +22,32 @@ class BaseAthena:
|
|
22
22
|
"""
|
23
23
|
Use this class to access the different functions within the SDK. You can instantiate any number of clients with different configuration that will propogate to these functions.
|
24
24
|
|
25
|
-
Parameters
|
26
|
-
|
25
|
+
Parameters
|
26
|
+
----------
|
27
|
+
base_url : typing.Optional[str]
|
28
|
+
The base url to use for requests from the client.
|
27
29
|
|
28
|
-
|
30
|
+
environment : AthenaEnvironment
|
31
|
+
The environment to use for requests from the client. from .environment import AthenaEnvironment
|
29
32
|
|
30
|
-
Defaults to AthenaEnvironment.DEFAULT
|
31
33
|
|
32
|
-
- api_key: str.
|
33
34
|
|
34
|
-
|
35
|
+
Defaults to AthenaEnvironment.DEFAULT
|
35
36
|
|
36
|
-
- follow_redirects: typing.Optional[bool]. Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in.
|
37
37
|
|
38
|
-
|
39
|
-
|
38
|
+
|
39
|
+
api_key : str
|
40
|
+
timeout : typing.Optional[float]
|
41
|
+
The timeout to be used, in seconds, for requests by default the timeout is 60 seconds, unless a custom httpx client is used, in which case a default is not set.
|
42
|
+
|
43
|
+
follow_redirects : typing.Optional[bool]
|
44
|
+
Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in.
|
45
|
+
|
46
|
+
httpx_client : typing.Optional[httpx.Client]
|
47
|
+
The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.
|
48
|
+
|
49
|
+
Examples
|
50
|
+
--------
|
40
51
|
from athena.client import Athena
|
41
52
|
|
42
53
|
client = Athena(
|
@@ -81,21 +92,32 @@ class AsyncBaseAthena:
|
|
81
92
|
"""
|
82
93
|
Use this class to access the different functions within the SDK. You can instantiate any number of clients with different configuration that will propogate to these functions.
|
83
94
|
|
84
|
-
Parameters
|
85
|
-
|
95
|
+
Parameters
|
96
|
+
----------
|
97
|
+
base_url : typing.Optional[str]
|
98
|
+
The base url to use for requests from the client.
|
99
|
+
|
100
|
+
environment : AthenaEnvironment
|
101
|
+
The environment to use for requests from the client. from .environment import AthenaEnvironment
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
Defaults to AthenaEnvironment.DEFAULT
|
86
106
|
|
87
|
-
- environment: AthenaEnvironment. The environment to use for requests from the client. from .environment import AthenaEnvironment
|
88
107
|
|
89
|
-
Defaults to AthenaEnvironment.DEFAULT
|
90
108
|
|
91
|
-
|
109
|
+
api_key : str
|
110
|
+
timeout : typing.Optional[float]
|
111
|
+
The timeout to be used, in seconds, for requests by default the timeout is 60 seconds, unless a custom httpx client is used, in which case a default is not set.
|
92
112
|
|
93
|
-
|
113
|
+
follow_redirects : typing.Optional[bool]
|
114
|
+
Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in.
|
94
115
|
|
95
|
-
|
116
|
+
httpx_client : typing.Optional[httpx.AsyncClient]
|
117
|
+
The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.
|
96
118
|
|
97
|
-
|
98
|
-
|
119
|
+
Examples
|
120
|
+
--------
|
99
121
|
from athena.client import AsyncAthena
|
100
122
|
|
101
123
|
client = AsyncAthena(
|
@@ -34,15 +34,26 @@ class ChainClient:
|
|
34
34
|
request_options: typing.Optional[RequestOptions] = None,
|
35
35
|
) -> StructuredParseResult:
|
36
36
|
"""
|
37
|
-
Parameters
|
38
|
-
|
37
|
+
Parameters
|
38
|
+
----------
|
39
|
+
text_input : str
|
40
|
+
The text input to be parsed.
|
39
41
|
|
40
|
-
|
42
|
+
custom_type_dict : typing.Dict[str, typing.Any]
|
43
|
+
A dictionary of field names and their default values.
|
41
44
|
|
42
|
-
|
45
|
+
model : LlmModel
|
43
46
|
|
44
|
-
|
45
|
-
|
47
|
+
request_options : typing.Optional[RequestOptions]
|
48
|
+
Request-specific configuration.
|
49
|
+
|
50
|
+
Returns
|
51
|
+
-------
|
52
|
+
StructuredParseResult
|
53
|
+
Successful Response
|
54
|
+
|
55
|
+
Examples
|
56
|
+
--------
|
46
57
|
from athena import LlmModel
|
47
58
|
from athena.client import Athena
|
48
59
|
|
@@ -104,19 +115,28 @@ class ChainClient:
|
|
104
115
|
request_options: typing.Optional[RequestOptions] = None,
|
105
116
|
) -> MapReduceChainOut:
|
106
117
|
"""
|
107
|
-
Parameters
|
108
|
-
|
118
|
+
Parameters
|
119
|
+
----------
|
120
|
+
documents : typing.Sequence[Document]
|
121
|
+
|
122
|
+
model : LlmModel
|
123
|
+
|
124
|
+
operator_prompt : str
|
109
125
|
|
110
|
-
|
126
|
+
reducer_prompt : str
|
111
127
|
|
112
|
-
|
128
|
+
input : str
|
113
129
|
|
114
|
-
|
130
|
+
request_options : typing.Optional[RequestOptions]
|
131
|
+
Request-specific configuration.
|
115
132
|
|
116
|
-
|
133
|
+
Returns
|
134
|
+
-------
|
135
|
+
MapReduceChainOut
|
136
|
+
Successful Response
|
117
137
|
|
118
|
-
|
119
|
-
|
138
|
+
Examples
|
139
|
+
--------
|
120
140
|
from athena import Document, LlmModel
|
121
141
|
from athena.client import Athena
|
122
142
|
|
@@ -204,15 +224,26 @@ class AsyncChainClient:
|
|
204
224
|
request_options: typing.Optional[RequestOptions] = None,
|
205
225
|
) -> StructuredParseResult:
|
206
226
|
"""
|
207
|
-
Parameters
|
208
|
-
|
227
|
+
Parameters
|
228
|
+
----------
|
229
|
+
text_input : str
|
230
|
+
The text input to be parsed.
|
209
231
|
|
210
|
-
|
232
|
+
custom_type_dict : typing.Dict[str, typing.Any]
|
233
|
+
A dictionary of field names and their default values.
|
211
234
|
|
212
|
-
|
235
|
+
model : LlmModel
|
213
236
|
|
214
|
-
|
215
|
-
|
237
|
+
request_options : typing.Optional[RequestOptions]
|
238
|
+
Request-specific configuration.
|
239
|
+
|
240
|
+
Returns
|
241
|
+
-------
|
242
|
+
StructuredParseResult
|
243
|
+
Successful Response
|
244
|
+
|
245
|
+
Examples
|
246
|
+
--------
|
216
247
|
from athena import LlmModel
|
217
248
|
from athena.client import AsyncAthena
|
218
249
|
|
@@ -274,19 +305,28 @@ class AsyncChainClient:
|
|
274
305
|
request_options: typing.Optional[RequestOptions] = None,
|
275
306
|
) -> MapReduceChainOut:
|
276
307
|
"""
|
277
|
-
Parameters
|
278
|
-
|
308
|
+
Parameters
|
309
|
+
----------
|
310
|
+
documents : typing.Sequence[Document]
|
311
|
+
|
312
|
+
model : LlmModel
|
313
|
+
|
314
|
+
operator_prompt : str
|
279
315
|
|
280
|
-
|
316
|
+
reducer_prompt : str
|
281
317
|
|
282
|
-
|
318
|
+
input : str
|
283
319
|
|
284
|
-
|
320
|
+
request_options : typing.Optional[RequestOptions]
|
321
|
+
Request-specific configuration.
|
285
322
|
|
286
|
-
|
323
|
+
Returns
|
324
|
+
-------
|
325
|
+
MapReduceChainOut
|
326
|
+
Successful Response
|
287
327
|
|
288
|
-
|
289
|
-
|
328
|
+
Examples
|
329
|
+
--------
|
290
330
|
from athena import Document, LlmModel
|
291
331
|
from athena.client import AsyncAthena
|
292
332
|
|
@@ -17,7 +17,7 @@ class BaseClientWrapper:
|
|
17
17
|
headers: typing.Dict[str, str] = {
|
18
18
|
"X-Fern-Language": "Python",
|
19
19
|
"X-Fern-SDK-Name": "athena-intelligence",
|
20
|
-
"X-Fern-SDK-Version": "0.1.
|
20
|
+
"X-Fern-SDK-Version": "0.1.83",
|
21
21
|
}
|
22
22
|
headers["X-API-KEY"] = self.api_key
|
23
23
|
return headers
|
@@ -27,13 +27,24 @@ class DatasetClient:
|
|
27
27
|
request_options: typing.Optional[RequestOptions] = None,
|
28
28
|
) -> GetDatasetsResponse:
|
29
29
|
"""
|
30
|
-
Parameters
|
31
|
-
|
30
|
+
Parameters
|
31
|
+
----------
|
32
|
+
page : typing.Optional[int]
|
33
|
+
Page number starting from 1
|
32
34
|
|
33
|
-
|
35
|
+
page_size : typing.Optional[int]
|
36
|
+
Number of items per page
|
34
37
|
|
35
|
-
|
36
|
-
|
38
|
+
request_options : typing.Optional[RequestOptions]
|
39
|
+
Request-specific configuration.
|
40
|
+
|
41
|
+
Returns
|
42
|
+
-------
|
43
|
+
GetDatasetsResponse
|
44
|
+
Successful Response
|
45
|
+
|
46
|
+
Examples
|
47
|
+
--------
|
37
48
|
from athena.client import Athena
|
38
49
|
|
39
50
|
client = Athena(
|
@@ -96,13 +107,24 @@ class AsyncDatasetClient:
|
|
96
107
|
request_options: typing.Optional[RequestOptions] = None,
|
97
108
|
) -> GetDatasetsResponse:
|
98
109
|
"""
|
99
|
-
Parameters
|
100
|
-
|
110
|
+
Parameters
|
111
|
+
----------
|
112
|
+
page : typing.Optional[int]
|
113
|
+
Page number starting from 1
|
114
|
+
|
115
|
+
page_size : typing.Optional[int]
|
116
|
+
Number of items per page
|
117
|
+
|
118
|
+
request_options : typing.Optional[RequestOptions]
|
119
|
+
Request-specific configuration.
|
101
120
|
|
102
|
-
|
121
|
+
Returns
|
122
|
+
-------
|
123
|
+
GetDatasetsResponse
|
124
|
+
Successful Response
|
103
125
|
|
104
|
-
|
105
|
-
|
126
|
+
Examples
|
127
|
+
--------
|
106
128
|
from athena.client import AsyncAthena
|
107
129
|
|
108
130
|
client = AsyncAthena(
|
@@ -36,19 +36,28 @@ class MessageClient:
|
|
36
36
|
request_options: typing.Optional[RequestOptions] = None,
|
37
37
|
) -> MessageOut:
|
38
38
|
"""
|
39
|
-
Parameters
|
40
|
-
|
39
|
+
Parameters
|
40
|
+
----------
|
41
|
+
content : str
|
41
42
|
|
42
|
-
|
43
|
+
model : typing.Optional[Model]
|
43
44
|
|
44
|
-
|
45
|
+
tools : typing.Optional[typing.Sequence[Tools]]
|
45
46
|
|
46
|
-
|
47
|
+
conversation_id : typing.Optional[str]
|
47
48
|
|
48
|
-
|
49
|
+
conversation_name : typing.Optional[str]
|
49
50
|
|
50
|
-
|
51
|
-
|
51
|
+
request_options : typing.Optional[RequestOptions]
|
52
|
+
Request-specific configuration.
|
53
|
+
|
54
|
+
Returns
|
55
|
+
-------
|
56
|
+
MessageOut
|
57
|
+
Successful Response
|
58
|
+
|
59
|
+
Examples
|
60
|
+
--------
|
52
61
|
from athena import Model, Tools
|
53
62
|
from athena.client import Athena
|
54
63
|
|
@@ -110,11 +119,20 @@ class MessageClient:
|
|
110
119
|
|
111
120
|
def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MessageOutDto:
|
112
121
|
"""
|
113
|
-
Parameters
|
114
|
-
|
122
|
+
Parameters
|
123
|
+
----------
|
124
|
+
id : str
|
125
|
+
|
126
|
+
request_options : typing.Optional[RequestOptions]
|
127
|
+
Request-specific configuration.
|
128
|
+
|
129
|
+
Returns
|
130
|
+
-------
|
131
|
+
MessageOutDto
|
132
|
+
Successful Response
|
115
133
|
|
116
|
-
|
117
|
-
|
134
|
+
Examples
|
135
|
+
--------
|
118
136
|
from athena.client import Athena
|
119
137
|
|
120
138
|
client = Athena(
|
@@ -174,19 +192,28 @@ class AsyncMessageClient:
|
|
174
192
|
request_options: typing.Optional[RequestOptions] = None,
|
175
193
|
) -> MessageOut:
|
176
194
|
"""
|
177
|
-
Parameters
|
178
|
-
|
195
|
+
Parameters
|
196
|
+
----------
|
197
|
+
content : str
|
179
198
|
|
180
|
-
|
199
|
+
model : typing.Optional[Model]
|
181
200
|
|
182
|
-
|
201
|
+
tools : typing.Optional[typing.Sequence[Tools]]
|
183
202
|
|
184
|
-
|
203
|
+
conversation_id : typing.Optional[str]
|
185
204
|
|
186
|
-
|
205
|
+
conversation_name : typing.Optional[str]
|
187
206
|
|
188
|
-
|
189
|
-
|
207
|
+
request_options : typing.Optional[RequestOptions]
|
208
|
+
Request-specific configuration.
|
209
|
+
|
210
|
+
Returns
|
211
|
+
-------
|
212
|
+
MessageOut
|
213
|
+
Successful Response
|
214
|
+
|
215
|
+
Examples
|
216
|
+
--------
|
190
217
|
from athena import Model, Tools
|
191
218
|
from athena.client import AsyncAthena
|
192
219
|
|
@@ -248,11 +275,20 @@ class AsyncMessageClient:
|
|
248
275
|
|
249
276
|
async def get(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> MessageOutDto:
|
250
277
|
"""
|
251
|
-
Parameters
|
252
|
-
|
278
|
+
Parameters
|
279
|
+
----------
|
280
|
+
id : str
|
281
|
+
|
282
|
+
request_options : typing.Optional[RequestOptions]
|
283
|
+
Request-specific configuration.
|
284
|
+
|
285
|
+
Returns
|
286
|
+
-------
|
287
|
+
MessageOutDto
|
288
|
+
Successful Response
|
253
289
|
|
254
|
-
|
255
|
-
|
290
|
+
Examples
|
291
|
+
--------
|
256
292
|
from athena.client import AsyncAthena
|
257
293
|
|
258
294
|
client = AsyncAthena(
|
@@ -26,13 +26,22 @@ class QueryClient:
|
|
26
26
|
self, *, sql_command: str, database_id: int, request_options: typing.Optional[RequestOptions] = None
|
27
27
|
) -> SqlResults:
|
28
28
|
"""
|
29
|
-
Parameters
|
30
|
-
|
29
|
+
Parameters
|
30
|
+
----------
|
31
|
+
sql_command : str
|
31
32
|
|
32
|
-
|
33
|
+
database_id : int
|
33
34
|
|
34
|
-
|
35
|
-
|
35
|
+
request_options : typing.Optional[RequestOptions]
|
36
|
+
Request-specific configuration.
|
37
|
+
|
38
|
+
Returns
|
39
|
+
-------
|
40
|
+
SqlResults
|
41
|
+
Successful Response
|
42
|
+
|
43
|
+
Examples
|
44
|
+
--------
|
36
45
|
from athena.client import Athena
|
37
46
|
|
38
47
|
client = Athena(
|
@@ -90,13 +99,22 @@ class AsyncQueryClient:
|
|
90
99
|
self, *, sql_command: str, database_id: int, request_options: typing.Optional[RequestOptions] = None
|
91
100
|
) -> SqlResults:
|
92
101
|
"""
|
93
|
-
Parameters
|
94
|
-
|
102
|
+
Parameters
|
103
|
+
----------
|
104
|
+
sql_command : str
|
105
|
+
|
106
|
+
database_id : int
|
107
|
+
|
108
|
+
request_options : typing.Optional[RequestOptions]
|
109
|
+
Request-specific configuration.
|
95
110
|
|
96
|
-
|
111
|
+
Returns
|
112
|
+
-------
|
113
|
+
SqlResults
|
114
|
+
Successful Response
|
97
115
|
|
98
|
-
|
99
|
-
|
116
|
+
Examples
|
117
|
+
--------
|
100
118
|
from athena.client import AsyncAthena
|
101
119
|
|
102
120
|
client = AsyncAthena(
|
@@ -30,13 +30,22 @@ class ReportClient:
|
|
30
30
|
request_options: typing.Optional[RequestOptions] = None,
|
31
31
|
) -> Report:
|
32
32
|
"""
|
33
|
-
Parameters
|
34
|
-
|
33
|
+
Parameters
|
34
|
+
----------
|
35
|
+
name : typing.Optional[str]
|
35
36
|
|
36
|
-
|
37
|
+
workspace_access : typing.Optional[bool]
|
37
38
|
|
38
|
-
|
39
|
-
|
39
|
+
request_options : typing.Optional[RequestOptions]
|
40
|
+
Request-specific configuration.
|
41
|
+
|
42
|
+
Returns
|
43
|
+
-------
|
44
|
+
Report
|
45
|
+
Successful Response
|
46
|
+
|
47
|
+
Examples
|
48
|
+
--------
|
40
49
|
from athena.client import Athena
|
41
50
|
|
42
51
|
client = Athena(
|
@@ -100,13 +109,22 @@ class AsyncReportClient:
|
|
100
109
|
request_options: typing.Optional[RequestOptions] = None,
|
101
110
|
) -> Report:
|
102
111
|
"""
|
103
|
-
Parameters
|
104
|
-
|
112
|
+
Parameters
|
113
|
+
----------
|
114
|
+
name : typing.Optional[str]
|
115
|
+
|
116
|
+
workspace_access : typing.Optional[bool]
|
117
|
+
|
118
|
+
request_options : typing.Optional[RequestOptions]
|
119
|
+
Request-specific configuration.
|
105
120
|
|
106
|
-
|
121
|
+
Returns
|
122
|
+
-------
|
123
|
+
Report
|
124
|
+
Successful Response
|
107
125
|
|
108
|
-
|
109
|
-
|
126
|
+
Examples
|
127
|
+
--------
|
110
128
|
from athena.client import AsyncAthena
|
111
129
|
|
112
130
|
client = AsyncAthena(
|
@@ -34,21 +34,30 @@ class SearchClient:
|
|
34
34
|
request_options: typing.Optional[RequestOptions] = None,
|
35
35
|
) -> UrlResult:
|
36
36
|
"""
|
37
|
-
Parameters
|
38
|
-
|
37
|
+
Parameters
|
38
|
+
----------
|
39
|
+
query : str
|
39
40
|
|
40
|
-
|
41
|
+
num_urls : int
|
41
42
|
|
42
|
-
|
43
|
+
tbs : str
|
43
44
|
|
44
|
-
|
45
|
+
country_code : typing.Optional[str]
|
45
46
|
|
46
|
-
|
47
|
+
country_restrict : typing.Optional[str]
|
47
48
|
|
48
|
-
|
49
|
+
site : typing.Optional[str]
|
49
50
|
|
50
|
-
|
51
|
-
|
51
|
+
request_options : typing.Optional[RequestOptions]
|
52
|
+
Request-specific configuration.
|
53
|
+
|
54
|
+
Returns
|
55
|
+
-------
|
56
|
+
UrlResult
|
57
|
+
Successful Response
|
58
|
+
|
59
|
+
Examples
|
60
|
+
--------
|
52
61
|
from athena.client import Athena
|
53
62
|
|
54
63
|
client = Athena(
|
@@ -122,21 +131,30 @@ class AsyncSearchClient:
|
|
122
131
|
request_options: typing.Optional[RequestOptions] = None,
|
123
132
|
) -> UrlResult:
|
124
133
|
"""
|
125
|
-
Parameters
|
126
|
-
|
134
|
+
Parameters
|
135
|
+
----------
|
136
|
+
query : str
|
137
|
+
|
138
|
+
num_urls : int
|
139
|
+
|
140
|
+
tbs : str
|
127
141
|
|
128
|
-
|
142
|
+
country_code : typing.Optional[str]
|
129
143
|
|
130
|
-
|
144
|
+
country_restrict : typing.Optional[str]
|
131
145
|
|
132
|
-
|
146
|
+
site : typing.Optional[str]
|
133
147
|
|
134
|
-
|
148
|
+
request_options : typing.Optional[RequestOptions]
|
149
|
+
Request-specific configuration.
|
135
150
|
|
136
|
-
|
151
|
+
Returns
|
152
|
+
-------
|
153
|
+
UrlResult
|
154
|
+
Successful Response
|
137
155
|
|
138
|
-
|
139
|
-
|
156
|
+
Examples
|
157
|
+
--------
|
140
158
|
from athena.client import AsyncAthena
|
141
159
|
|
142
160
|
client = AsyncAthena(
|