athena-intelligence 0.1.81__py3-none-any.whl → 0.1.83__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.
athena/tools/client.py CHANGED
@@ -13,9 +13,11 @@ from ..core.request_options import RequestOptions
13
13
  from ..errors.internal_server_error import InternalServerError
14
14
  from ..errors.not_found_error import NotFoundError
15
15
  from ..errors.unprocessable_entity_error import UnprocessableEntityError
16
+ from ..errors.unsupported_media_type_error import UnsupportedMediaTypeError
16
17
  from ..types.convert_pdf_to_sheet_out import ConvertPdfToSheetOut
17
18
  from ..types.data_frame_parsing_error import DataFrameParsingError
18
19
  from ..types.data_frame_request_out import DataFrameRequestOut
20
+ from ..types.data_frame_unknown_format_error import DataFrameUnknownFormatError
19
21
  from ..types.excecute_tool_first_workflow_out import ExcecuteToolFirstWorkflowOut
20
22
  from ..types.file_fetch_error import FileFetchError
21
23
  from ..types.firecrawl_scrape_url_data_reponse_dto import FirecrawlScrapeUrlDataReponseDto
@@ -44,13 +46,22 @@ class ToolsClient:
44
46
  request_options: typing.Optional[RequestOptions] = None,
45
47
  ) -> FirecrawlScrapeUrlDataReponseDto:
46
48
  """
47
- Parameters:
48
- - url: str.
49
+ Parameters
50
+ ----------
51
+ url : str
49
52
 
50
- - params: typing.Optional[typing.Dict[str, typing.Any]].
53
+ params : typing.Optional[typing.Dict[str, typing.Any]]
51
54
 
52
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
53
- ---
55
+ request_options : typing.Optional[RequestOptions]
56
+ Request-specific configuration.
57
+
58
+ Returns
59
+ -------
60
+ FirecrawlScrapeUrlDataReponseDto
61
+ Successful Response
62
+
63
+ Examples
64
+ --------
54
65
  from athena.client import Athena
55
66
 
56
67
  client = Athena(
@@ -58,6 +69,7 @@ class ToolsClient:
58
69
  )
59
70
  client.tools.scrape_url(
60
71
  url="https://www.athenaintelligence.ai",
72
+ params={"key": "value"},
61
73
  )
62
74
  """
63
75
  _request: typing.Dict[str, typing.Any] = {"url": url}
@@ -110,15 +122,24 @@ class ToolsClient:
110
122
  request_options: typing.Optional[RequestOptions] = None,
111
123
  ) -> LangchainDocumentsRequestOut:
112
124
  """
113
- Parameters:
114
- - document_id: str.
125
+ Parameters
126
+ ----------
127
+ document_id : str
128
+
129
+ pagination_limit : typing.Optional[int]
115
130
 
116
- - pagination_limit: typing.Optional[int].
131
+ pagination_offset : typing.Optional[int]
117
132
 
118
- - pagination_offset: typing.Optional[int].
133
+ request_options : typing.Optional[RequestOptions]
134
+ Request-specific configuration.
119
135
 
120
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
121
- ---
136
+ Returns
137
+ -------
138
+ LangchainDocumentsRequestOut
139
+ Successful Response
140
+
141
+ Examples
142
+ --------
122
143
  from athena.client import Athena
123
144
 
124
145
  client = Athena(
@@ -189,21 +210,33 @@ class ToolsClient:
189
210
  request_options: typing.Optional[RequestOptions] = None,
190
211
  ) -> DataFrameRequestOut:
191
212
  """
192
- Parameters:
193
- - document_id: str.
213
+ Parameters
214
+ ----------
215
+ document_id : str
216
+
217
+ row_limit : typing.Optional[int]
194
218
 
195
- - row_limit: typing.Optional[int].
219
+ index_column : typing.Optional[int]
196
220
 
197
- - index_column: typing.Optional[int].
221
+ columns : typing.Optional[typing.Union[ToolsDataFrameRequestColumnsItem, typing.Sequence[ToolsDataFrameRequestColumnsItem]]]
222
+ should be a list of strings or a list of integers
198
223
 
199
- - columns: typing.Optional[typing.Union[ToolsDataFrameRequestColumnsItem, typing.Sequence[ToolsDataFrameRequestColumnsItem]]]. should be a list of strings or a list of integers
224
+ sheet_name : typing.Optional[str]
225
+ only for excel files
200
226
 
201
- - sheet_name: typing.Optional[str]. only for excel files
227
+ separator : typing.Optional[str]
228
+ only for csv files
202
229
 
203
- - separator: typing.Optional[str]. only for csv files
230
+ request_options : typing.Optional[RequestOptions]
231
+ Request-specific configuration.
204
232
 
205
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
206
- ---
233
+ Returns
234
+ -------
235
+ DataFrameRequestOut
236
+ Successful Response
237
+
238
+ Examples
239
+ --------
207
240
  from athena.client import Athena
208
241
 
209
242
  client = Athena(
@@ -251,6 +284,10 @@ class ToolsClient:
251
284
  return pydantic_v1.parse_obj_as(DataFrameRequestOut, _response.json()) # type: ignore
252
285
  if _response.status_code == 404:
253
286
  raise NotFoundError(pydantic_v1.parse_obj_as(FileFetchError, _response.json())) # type: ignore
287
+ if _response.status_code == 415:
288
+ raise UnsupportedMediaTypeError(
289
+ pydantic_v1.parse_obj_as(DataFrameUnknownFormatError, _response.json()) # type: ignore
290
+ )
254
291
  if _response.status_code == 422:
255
292
  raise UnprocessableEntityError(
256
293
  pydantic_v1.parse_obj_as(HttpValidationError, _response.json()) # type: ignore
@@ -263,23 +300,34 @@ class ToolsClient:
263
300
  raise ApiError(status_code=_response.status_code, body=_response.text)
264
301
  raise ApiError(status_code=_response.status_code, body=_response_json)
265
302
 
266
- def raw_data(self, *, document_id: str, request_options: typing.Optional[RequestOptions] = None) -> None:
303
+ def raw_data(
304
+ self, *, document_id: str, request_options: typing.Optional[RequestOptions] = None
305
+ ) -> typing.Iterator[bytes]:
267
306
  """
268
- Parameters:
269
- - document_id: str.
307
+ Parameters
308
+ ----------
309
+ document_id : str
310
+
311
+ request_options : typing.Optional[RequestOptions]
312
+ Request-specific configuration.
270
313
 
271
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
272
- ---
314
+ Yields
315
+ ------
316
+ typing.Iterator[bytes]
317
+ Stream the file in original format.
318
+
319
+ Examples
320
+ --------
273
321
  from athena.client import Athena
274
322
 
275
323
  client = Athena(
276
324
  api_key="YOUR_API_KEY",
277
325
  )
278
326
  client.tools.raw_data(
279
- document_id="document_id",
327
+ document_id="string",
280
328
  )
281
329
  """
282
- _response = self._client_wrapper.httpx_client.request(
330
+ with self._client_wrapper.httpx_client.stream(
283
331
  method="GET",
284
332
  url=urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/v0/tools/file/raw-data"),
285
333
  params=jsonable_encoder(
@@ -307,42 +355,54 @@ class ToolsClient:
307
355
  else self._client_wrapper.get_timeout(),
308
356
  retries=0,
309
357
  max_retries=request_options.get("max_retries") if request_options is not None else 0, # type: ignore
310
- )
311
- if 200 <= _response.status_code < 300:
312
- return
313
- if _response.status_code == 404:
314
- raise NotFoundError(pydantic_v1.parse_obj_as(FileFetchError, _response.json())) # type: ignore
315
- if _response.status_code == 422:
316
- raise UnprocessableEntityError(
317
- pydantic_v1.parse_obj_as(HttpValidationError, _response.json()) # type: ignore
318
- )
319
- try:
320
- _response_json = _response.json()
321
- except JSONDecodeError:
322
- raise ApiError(status_code=_response.status_code, body=_response.text)
323
- raise ApiError(status_code=_response.status_code, body=_response_json)
358
+ ) as _response:
359
+ if 200 <= _response.status_code < 300:
360
+ for _chunk in _response.iter_bytes():
361
+ yield _chunk
362
+ return
363
+ _response.read()
364
+ if _response.status_code == 404:
365
+ raise NotFoundError(pydantic_v1.parse_obj_as(FileFetchError, _response.json())) # type: ignore
366
+ if _response.status_code == 422:
367
+ raise UnprocessableEntityError(
368
+ pydantic_v1.parse_obj_as(HttpValidationError, _response.json()) # type: ignore
369
+ )
370
+ try:
371
+ _response_json = _response.json()
372
+ except JSONDecodeError:
373
+ raise ApiError(status_code=_response.status_code, body=_response.text)
374
+ raise ApiError(status_code=_response.status_code, body=_response_json)
324
375
 
325
376
  def tool_first_workflow(
326
377
  self,
327
378
  *,
328
- model: typing.Optional[LlmModel] = OMIT,
329
379
  tool_name: str,
330
380
  content: str,
381
+ model: typing.Optional[LlmModel] = OMIT,
331
382
  tool_kwargs: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
332
383
  request_options: typing.Optional[RequestOptions] = None,
333
384
  ) -> ExcecuteToolFirstWorkflowOut:
334
385
  """
335
- Parameters:
336
- - model: typing.Optional[LlmModel].
386
+ Parameters
387
+ ----------
388
+ tool_name : str
389
+
390
+ content : str
391
+
392
+ model : typing.Optional[LlmModel]
337
393
 
338
- - tool_name: str.
394
+ tool_kwargs : typing.Optional[typing.Dict[str, typing.Any]]
339
395
 
340
- - content: str.
396
+ request_options : typing.Optional[RequestOptions]
397
+ Request-specific configuration.
341
398
 
342
- - tool_kwargs: typing.Optional[typing.Dict[str, typing.Any]].
399
+ Returns
400
+ -------
401
+ ExcecuteToolFirstWorkflowOut
402
+ Successful Response
343
403
 
344
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
345
- ---
404
+ Examples
405
+ --------
346
406
  from athena import LlmModel
347
407
  from athena.client import Athena
348
408
 
@@ -411,21 +471,30 @@ class ToolsClient:
411
471
  request_options: typing.Optional[RequestOptions] = None,
412
472
  ) -> ResearcherOut:
413
473
  """
414
- Parameters:
415
- - query: str.
474
+ Parameters
475
+ ----------
476
+ query : str
477
+
478
+ max_sections : int
479
+
480
+ guidelines : typing.Sequence[str]
416
481
 
417
- - max_sections: int.
482
+ publish_formats : typing.Optional[PublishFormats]
418
483
 
419
- - guidelines: typing.Sequence[str].
484
+ source : typing.Optional[str]
420
485
 
421
- - publish_formats: typing.Optional[PublishFormats].
486
+ athena_document_ids : typing.Optional[typing.Sequence[str]]
422
487
 
423
- - source: typing.Optional[str].
488
+ request_options : typing.Optional[RequestOptions]
489
+ Request-specific configuration.
424
490
 
425
- - athena_document_ids: typing.Optional[typing.Sequence[str]].
491
+ Returns
492
+ -------
493
+ ResearcherOut
494
+ Successful Response
426
495
 
427
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
428
- ---
496
+ Examples
497
+ --------
429
498
  from athena import PublishFormats
430
499
  from athena.client import Athena
431
500
 
@@ -502,11 +571,20 @@ class ToolsClient:
502
571
  self, *, document_id: str, request_options: typing.Optional[RequestOptions] = None
503
572
  ) -> ConvertPdfToSheetOut:
504
573
  """
505
- Parameters:
506
- - document_id: str.
574
+ Parameters
575
+ ----------
576
+ document_id : str
507
577
 
508
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
509
- ---
578
+ request_options : typing.Optional[RequestOptions]
579
+ Request-specific configuration.
580
+
581
+ Returns
582
+ -------
583
+ ConvertPdfToSheetOut
584
+ Successful Response
585
+
586
+ Examples
587
+ --------
510
588
  from athena.client import Athena
511
589
 
512
590
  client = Athena(
@@ -562,13 +640,22 @@ class ToolsClient:
562
640
  request_options: typing.Optional[RequestOptions] = None,
563
641
  ) -> SemanticQueryOut:
564
642
  """
565
- Parameters:
566
- - query: QueryModel.
643
+ Parameters
644
+ ----------
645
+ query : QueryModel
646
+
647
+ table_name : typing.Optional[str]
648
+
649
+ request_options : typing.Optional[RequestOptions]
650
+ Request-specific configuration.
567
651
 
568
- - table_name: typing.Optional[str].
652
+ Returns
653
+ -------
654
+ SemanticQueryOut
655
+ Successful Response
569
656
 
570
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
571
- ---
657
+ Examples
658
+ --------
572
659
  from athena import FilterModel, FilterOperator, QueryModel, TimeDimensionModel
573
660
  from athena.client import Athena
574
661
 
@@ -650,13 +737,22 @@ class AsyncToolsClient:
650
737
  request_options: typing.Optional[RequestOptions] = None,
651
738
  ) -> FirecrawlScrapeUrlDataReponseDto:
652
739
  """
653
- Parameters:
654
- - url: str.
740
+ Parameters
741
+ ----------
742
+ url : str
655
743
 
656
- - params: typing.Optional[typing.Dict[str, typing.Any]].
744
+ params : typing.Optional[typing.Dict[str, typing.Any]]
657
745
 
658
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
659
- ---
746
+ request_options : typing.Optional[RequestOptions]
747
+ Request-specific configuration.
748
+
749
+ Returns
750
+ -------
751
+ FirecrawlScrapeUrlDataReponseDto
752
+ Successful Response
753
+
754
+ Examples
755
+ --------
660
756
  from athena.client import AsyncAthena
661
757
 
662
758
  client = AsyncAthena(
@@ -664,6 +760,7 @@ class AsyncToolsClient:
664
760
  )
665
761
  await client.tools.scrape_url(
666
762
  url="https://www.athenaintelligence.ai",
763
+ params={"key": "value"},
667
764
  )
668
765
  """
669
766
  _request: typing.Dict[str, typing.Any] = {"url": url}
@@ -716,15 +813,24 @@ class AsyncToolsClient:
716
813
  request_options: typing.Optional[RequestOptions] = None,
717
814
  ) -> LangchainDocumentsRequestOut:
718
815
  """
719
- Parameters:
720
- - document_id: str.
816
+ Parameters
817
+ ----------
818
+ document_id : str
819
+
820
+ pagination_limit : typing.Optional[int]
721
821
 
722
- - pagination_limit: typing.Optional[int].
822
+ pagination_offset : typing.Optional[int]
723
823
 
724
- - pagination_offset: typing.Optional[int].
824
+ request_options : typing.Optional[RequestOptions]
825
+ Request-specific configuration.
725
826
 
726
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
727
- ---
827
+ Returns
828
+ -------
829
+ LangchainDocumentsRequestOut
830
+ Successful Response
831
+
832
+ Examples
833
+ --------
728
834
  from athena.client import AsyncAthena
729
835
 
730
836
  client = AsyncAthena(
@@ -795,21 +901,33 @@ class AsyncToolsClient:
795
901
  request_options: typing.Optional[RequestOptions] = None,
796
902
  ) -> DataFrameRequestOut:
797
903
  """
798
- Parameters:
799
- - document_id: str.
904
+ Parameters
905
+ ----------
906
+ document_id : str
907
+
908
+ row_limit : typing.Optional[int]
800
909
 
801
- - row_limit: typing.Optional[int].
910
+ index_column : typing.Optional[int]
802
911
 
803
- - index_column: typing.Optional[int].
912
+ columns : typing.Optional[typing.Union[ToolsDataFrameRequestColumnsItem, typing.Sequence[ToolsDataFrameRequestColumnsItem]]]
913
+ should be a list of strings or a list of integers
804
914
 
805
- - columns: typing.Optional[typing.Union[ToolsDataFrameRequestColumnsItem, typing.Sequence[ToolsDataFrameRequestColumnsItem]]]. should be a list of strings or a list of integers
915
+ sheet_name : typing.Optional[str]
916
+ only for excel files
806
917
 
807
- - sheet_name: typing.Optional[str]. only for excel files
918
+ separator : typing.Optional[str]
919
+ only for csv files
808
920
 
809
- - separator: typing.Optional[str]. only for csv files
921
+ request_options : typing.Optional[RequestOptions]
922
+ Request-specific configuration.
810
923
 
811
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
812
- ---
924
+ Returns
925
+ -------
926
+ DataFrameRequestOut
927
+ Successful Response
928
+
929
+ Examples
930
+ --------
813
931
  from athena.client import AsyncAthena
814
932
 
815
933
  client = AsyncAthena(
@@ -857,6 +975,10 @@ class AsyncToolsClient:
857
975
  return pydantic_v1.parse_obj_as(DataFrameRequestOut, _response.json()) # type: ignore
858
976
  if _response.status_code == 404:
859
977
  raise NotFoundError(pydantic_v1.parse_obj_as(FileFetchError, _response.json())) # type: ignore
978
+ if _response.status_code == 415:
979
+ raise UnsupportedMediaTypeError(
980
+ pydantic_v1.parse_obj_as(DataFrameUnknownFormatError, _response.json()) # type: ignore
981
+ )
860
982
  if _response.status_code == 422:
861
983
  raise UnprocessableEntityError(
862
984
  pydantic_v1.parse_obj_as(HttpValidationError, _response.json()) # type: ignore
@@ -869,23 +991,34 @@ class AsyncToolsClient:
869
991
  raise ApiError(status_code=_response.status_code, body=_response.text)
870
992
  raise ApiError(status_code=_response.status_code, body=_response_json)
871
993
 
872
- async def raw_data(self, *, document_id: str, request_options: typing.Optional[RequestOptions] = None) -> None:
994
+ async def raw_data(
995
+ self, *, document_id: str, request_options: typing.Optional[RequestOptions] = None
996
+ ) -> typing.AsyncIterator[bytes]:
873
997
  """
874
- Parameters:
875
- - document_id: str.
998
+ Parameters
999
+ ----------
1000
+ document_id : str
1001
+
1002
+ request_options : typing.Optional[RequestOptions]
1003
+ Request-specific configuration.
876
1004
 
877
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
878
- ---
1005
+ Yields
1006
+ ------
1007
+ typing.AsyncIterator[bytes]
1008
+ Stream the file in original format.
1009
+
1010
+ Examples
1011
+ --------
879
1012
  from athena.client import AsyncAthena
880
1013
 
881
1014
  client = AsyncAthena(
882
1015
  api_key="YOUR_API_KEY",
883
1016
  )
884
1017
  await client.tools.raw_data(
885
- document_id="document_id",
1018
+ document_id="string",
886
1019
  )
887
1020
  """
888
- _response = await self._client_wrapper.httpx_client.request(
1021
+ async with self._client_wrapper.httpx_client.stream(
889
1022
  method="GET",
890
1023
  url=urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/v0/tools/file/raw-data"),
891
1024
  params=jsonable_encoder(
@@ -913,42 +1046,54 @@ class AsyncToolsClient:
913
1046
  else self._client_wrapper.get_timeout(),
914
1047
  retries=0,
915
1048
  max_retries=request_options.get("max_retries") if request_options is not None else 0, # type: ignore
916
- )
917
- if 200 <= _response.status_code < 300:
918
- return
919
- if _response.status_code == 404:
920
- raise NotFoundError(pydantic_v1.parse_obj_as(FileFetchError, _response.json())) # type: ignore
921
- if _response.status_code == 422:
922
- raise UnprocessableEntityError(
923
- pydantic_v1.parse_obj_as(HttpValidationError, _response.json()) # type: ignore
924
- )
925
- try:
926
- _response_json = _response.json()
927
- except JSONDecodeError:
928
- raise ApiError(status_code=_response.status_code, body=_response.text)
929
- raise ApiError(status_code=_response.status_code, body=_response_json)
1049
+ ) as _response:
1050
+ if 200 <= _response.status_code < 300:
1051
+ async for _chunk in _response.aiter_bytes():
1052
+ yield _chunk
1053
+ return
1054
+ await _response.aread()
1055
+ if _response.status_code == 404:
1056
+ raise NotFoundError(pydantic_v1.parse_obj_as(FileFetchError, _response.json())) # type: ignore
1057
+ if _response.status_code == 422:
1058
+ raise UnprocessableEntityError(
1059
+ pydantic_v1.parse_obj_as(HttpValidationError, _response.json()) # type: ignore
1060
+ )
1061
+ try:
1062
+ _response_json = _response.json()
1063
+ except JSONDecodeError:
1064
+ raise ApiError(status_code=_response.status_code, body=_response.text)
1065
+ raise ApiError(status_code=_response.status_code, body=_response_json)
930
1066
 
931
1067
  async def tool_first_workflow(
932
1068
  self,
933
1069
  *,
934
- model: typing.Optional[LlmModel] = OMIT,
935
1070
  tool_name: str,
936
1071
  content: str,
1072
+ model: typing.Optional[LlmModel] = OMIT,
937
1073
  tool_kwargs: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
938
1074
  request_options: typing.Optional[RequestOptions] = None,
939
1075
  ) -> ExcecuteToolFirstWorkflowOut:
940
1076
  """
941
- Parameters:
942
- - model: typing.Optional[LlmModel].
1077
+ Parameters
1078
+ ----------
1079
+ tool_name : str
1080
+
1081
+ content : str
1082
+
1083
+ model : typing.Optional[LlmModel]
943
1084
 
944
- - tool_name: str.
1085
+ tool_kwargs : typing.Optional[typing.Dict[str, typing.Any]]
945
1086
 
946
- - content: str.
1087
+ request_options : typing.Optional[RequestOptions]
1088
+ Request-specific configuration.
947
1089
 
948
- - tool_kwargs: typing.Optional[typing.Dict[str, typing.Any]].
1090
+ Returns
1091
+ -------
1092
+ ExcecuteToolFirstWorkflowOut
1093
+ Successful Response
949
1094
 
950
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
951
- ---
1095
+ Examples
1096
+ --------
952
1097
  from athena import LlmModel
953
1098
  from athena.client import AsyncAthena
954
1099
 
@@ -1017,21 +1162,30 @@ class AsyncToolsClient:
1017
1162
  request_options: typing.Optional[RequestOptions] = None,
1018
1163
  ) -> ResearcherOut:
1019
1164
  """
1020
- Parameters:
1021
- - query: str.
1165
+ Parameters
1166
+ ----------
1167
+ query : str
1168
+
1169
+ max_sections : int
1170
+
1171
+ guidelines : typing.Sequence[str]
1022
1172
 
1023
- - max_sections: int.
1173
+ publish_formats : typing.Optional[PublishFormats]
1024
1174
 
1025
- - guidelines: typing.Sequence[str].
1175
+ source : typing.Optional[str]
1026
1176
 
1027
- - publish_formats: typing.Optional[PublishFormats].
1177
+ athena_document_ids : typing.Optional[typing.Sequence[str]]
1028
1178
 
1029
- - source: typing.Optional[str].
1179
+ request_options : typing.Optional[RequestOptions]
1180
+ Request-specific configuration.
1030
1181
 
1031
- - athena_document_ids: typing.Optional[typing.Sequence[str]].
1182
+ Returns
1183
+ -------
1184
+ ResearcherOut
1185
+ Successful Response
1032
1186
 
1033
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
1034
- ---
1187
+ Examples
1188
+ --------
1035
1189
  from athena import PublishFormats
1036
1190
  from athena.client import AsyncAthena
1037
1191
 
@@ -1108,11 +1262,20 @@ class AsyncToolsClient:
1108
1262
  self, *, document_id: str, request_options: typing.Optional[RequestOptions] = None
1109
1263
  ) -> ConvertPdfToSheetOut:
1110
1264
  """
1111
- Parameters:
1112
- - document_id: str.
1265
+ Parameters
1266
+ ----------
1267
+ document_id : str
1113
1268
 
1114
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
1115
- ---
1269
+ request_options : typing.Optional[RequestOptions]
1270
+ Request-specific configuration.
1271
+
1272
+ Returns
1273
+ -------
1274
+ ConvertPdfToSheetOut
1275
+ Successful Response
1276
+
1277
+ Examples
1278
+ --------
1116
1279
  from athena.client import AsyncAthena
1117
1280
 
1118
1281
  client = AsyncAthena(
@@ -1168,13 +1331,22 @@ class AsyncToolsClient:
1168
1331
  request_options: typing.Optional[RequestOptions] = None,
1169
1332
  ) -> SemanticQueryOut:
1170
1333
  """
1171
- Parameters:
1172
- - query: QueryModel.
1334
+ Parameters
1335
+ ----------
1336
+ query : QueryModel
1337
+
1338
+ table_name : typing.Optional[str]
1339
+
1340
+ request_options : typing.Optional[RequestOptions]
1341
+ Request-specific configuration.
1173
1342
 
1174
- - table_name: typing.Optional[str].
1343
+ Returns
1344
+ -------
1345
+ SemanticQueryOut
1346
+ Successful Response
1175
1347
 
1176
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
1177
- ---
1348
+ Examples
1349
+ --------
1178
1350
  from athena import FilterModel, FilterOperator, QueryModel, TimeDimensionModel
1179
1351
  from athena.client import AsyncAthena
1180
1352