alibabacloud-iqs20241111 1.2.0__py3-none-any.whl → 1.2.1__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.
- alibabacloud_iqs20241111/__init__.py +1 -1
- alibabacloud_iqs20241111/client.py +32 -80
- alibabacloud_iqs20241111/models.py +536 -0
- {alibabacloud_iqs20241111-1.2.0.dist-info → alibabacloud_iqs20241111-1.2.1.dist-info}/METADATA +2 -2
- alibabacloud_iqs20241111-1.2.1.dist-info/RECORD +8 -0
- alibabacloud_iqs20241111-1.2.0.dist-info/RECORD +0 -8
- {alibabacloud_iqs20241111-1.2.0.dist-info → alibabacloud_iqs20241111-1.2.1.dist-info}/LICENSE +0 -0
- {alibabacloud_iqs20241111-1.2.0.dist-info → alibabacloud_iqs20241111-1.2.1.dist-info}/WHEEL +0 -0
- {alibabacloud_iqs20241111-1.2.0.dist-info → alibabacloud_iqs20241111-1.2.1.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.2.
|
|
1
|
+
__version__ = '1.2.1'
|
|
@@ -82,16 +82,10 @@ class Client(OpenApiClient):
|
|
|
82
82
|
req_body_type='json',
|
|
83
83
|
body_type='json'
|
|
84
84
|
)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
)
|
|
90
|
-
else:
|
|
91
|
-
return TeaCore.from_map(
|
|
92
|
-
iqs20241111_models.AiSearchResponse(),
|
|
93
|
-
self.execute(params, req, runtime)
|
|
94
|
-
)
|
|
85
|
+
return TeaCore.from_map(
|
|
86
|
+
iqs20241111_models.AiSearchResponse(),
|
|
87
|
+
self.call_api(params, req, runtime)
|
|
88
|
+
)
|
|
95
89
|
|
|
96
90
|
async def ai_search_with_options_async(
|
|
97
91
|
self,
|
|
@@ -134,16 +128,10 @@ class Client(OpenApiClient):
|
|
|
134
128
|
req_body_type='json',
|
|
135
129
|
body_type='json'
|
|
136
130
|
)
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
)
|
|
142
|
-
else:
|
|
143
|
-
return TeaCore.from_map(
|
|
144
|
-
iqs20241111_models.AiSearchResponse(),
|
|
145
|
-
await self.execute_async(params, req, runtime)
|
|
146
|
-
)
|
|
131
|
+
return TeaCore.from_map(
|
|
132
|
+
iqs20241111_models.AiSearchResponse(),
|
|
133
|
+
await self.call_api_async(params, req, runtime)
|
|
134
|
+
)
|
|
147
135
|
|
|
148
136
|
def ai_search(
|
|
149
137
|
self,
|
|
@@ -212,16 +200,10 @@ class Client(OpenApiClient):
|
|
|
212
200
|
req_body_type='json',
|
|
213
201
|
body_type='json'
|
|
214
202
|
)
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
)
|
|
220
|
-
else:
|
|
221
|
-
return TeaCore.from_map(
|
|
222
|
-
iqs20241111_models.GenericAdvancedSearchResponse(),
|
|
223
|
-
self.execute(params, req, runtime)
|
|
224
|
-
)
|
|
203
|
+
return TeaCore.from_map(
|
|
204
|
+
iqs20241111_models.GenericAdvancedSearchResponse(),
|
|
205
|
+
self.call_api(params, req, runtime)
|
|
206
|
+
)
|
|
225
207
|
|
|
226
208
|
async def generic_advanced_search_with_options_async(
|
|
227
209
|
self,
|
|
@@ -262,16 +244,10 @@ class Client(OpenApiClient):
|
|
|
262
244
|
req_body_type='json',
|
|
263
245
|
body_type='json'
|
|
264
246
|
)
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
)
|
|
270
|
-
else:
|
|
271
|
-
return TeaCore.from_map(
|
|
272
|
-
iqs20241111_models.GenericAdvancedSearchResponse(),
|
|
273
|
-
await self.execute_async(params, req, runtime)
|
|
274
|
-
)
|
|
247
|
+
return TeaCore.from_map(
|
|
248
|
+
iqs20241111_models.GenericAdvancedSearchResponse(),
|
|
249
|
+
await self.call_api_async(params, req, runtime)
|
|
250
|
+
)
|
|
275
251
|
|
|
276
252
|
def generic_advanced_search(
|
|
277
253
|
self,
|
|
@@ -350,16 +326,10 @@ class Client(OpenApiClient):
|
|
|
350
326
|
req_body_type='json',
|
|
351
327
|
body_type='json'
|
|
352
328
|
)
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
)
|
|
358
|
-
else:
|
|
359
|
-
return TeaCore.from_map(
|
|
360
|
-
iqs20241111_models.GenericSearchResponse(),
|
|
361
|
-
self.execute(params, req, runtime)
|
|
362
|
-
)
|
|
329
|
+
return TeaCore.from_map(
|
|
330
|
+
iqs20241111_models.GenericSearchResponse(),
|
|
331
|
+
self.call_api(params, req, runtime)
|
|
332
|
+
)
|
|
363
333
|
|
|
364
334
|
async def generic_search_with_options_async(
|
|
365
335
|
self,
|
|
@@ -410,16 +380,10 @@ class Client(OpenApiClient):
|
|
|
410
380
|
req_body_type='json',
|
|
411
381
|
body_type='json'
|
|
412
382
|
)
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
)
|
|
418
|
-
else:
|
|
419
|
-
return TeaCore.from_map(
|
|
420
|
-
iqs20241111_models.GenericSearchResponse(),
|
|
421
|
-
await self.execute_async(params, req, runtime)
|
|
422
|
-
)
|
|
383
|
+
return TeaCore.from_map(
|
|
384
|
+
iqs20241111_models.GenericSearchResponse(),
|
|
385
|
+
await self.call_api_async(params, req, runtime)
|
|
386
|
+
)
|
|
423
387
|
|
|
424
388
|
def generic_search(
|
|
425
389
|
self,
|
|
@@ -488,16 +452,10 @@ class Client(OpenApiClient):
|
|
|
488
452
|
req_body_type='json',
|
|
489
453
|
body_type='json'
|
|
490
454
|
)
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
)
|
|
496
|
-
else:
|
|
497
|
-
return TeaCore.from_map(
|
|
498
|
-
iqs20241111_models.GlobalSearchResponse(),
|
|
499
|
-
self.execute(params, req, runtime)
|
|
500
|
-
)
|
|
455
|
+
return TeaCore.from_map(
|
|
456
|
+
iqs20241111_models.GlobalSearchResponse(),
|
|
457
|
+
self.call_api(params, req, runtime)
|
|
458
|
+
)
|
|
501
459
|
|
|
502
460
|
async def global_search_with_options_async(
|
|
503
461
|
self,
|
|
@@ -538,16 +496,10 @@ class Client(OpenApiClient):
|
|
|
538
496
|
req_body_type='json',
|
|
539
497
|
body_type='json'
|
|
540
498
|
)
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
)
|
|
546
|
-
else:
|
|
547
|
-
return TeaCore.from_map(
|
|
548
|
-
iqs20241111_models.GlobalSearchResponse(),
|
|
549
|
-
await self.execute_async(params, req, runtime)
|
|
550
|
-
)
|
|
499
|
+
return TeaCore.from_map(
|
|
500
|
+
iqs20241111_models.GlobalSearchResponse(),
|
|
501
|
+
await self.call_api_async(params, req, runtime)
|
|
502
|
+
)
|
|
551
503
|
|
|
552
504
|
def global_search(
|
|
553
505
|
self,
|
|
@@ -843,6 +843,542 @@ class GlobalSearchResult(TeaModel):
|
|
|
843
843
|
return self
|
|
844
844
|
|
|
845
845
|
|
|
846
|
+
class RequestContents(TeaModel):
|
|
847
|
+
def __init__(
|
|
848
|
+
self,
|
|
849
|
+
main_text: bool = None,
|
|
850
|
+
markdown_text: bool = None,
|
|
851
|
+
rerank_score: bool = None,
|
|
852
|
+
summary: bool = None,
|
|
853
|
+
):
|
|
854
|
+
self.main_text = main_text
|
|
855
|
+
self.markdown_text = markdown_text
|
|
856
|
+
self.rerank_score = rerank_score
|
|
857
|
+
self.summary = summary
|
|
858
|
+
|
|
859
|
+
def validate(self):
|
|
860
|
+
pass
|
|
861
|
+
|
|
862
|
+
def to_map(self):
|
|
863
|
+
_map = super().to_map()
|
|
864
|
+
if _map is not None:
|
|
865
|
+
return _map
|
|
866
|
+
|
|
867
|
+
result = dict()
|
|
868
|
+
if self.main_text is not None:
|
|
869
|
+
result['mainText'] = self.main_text
|
|
870
|
+
if self.markdown_text is not None:
|
|
871
|
+
result['markdownText'] = self.markdown_text
|
|
872
|
+
if self.rerank_score is not None:
|
|
873
|
+
result['rerankScore'] = self.rerank_score
|
|
874
|
+
if self.summary is not None:
|
|
875
|
+
result['summary'] = self.summary
|
|
876
|
+
return result
|
|
877
|
+
|
|
878
|
+
def from_map(self, m: dict = None):
|
|
879
|
+
m = m or dict()
|
|
880
|
+
if m.get('mainText') is not None:
|
|
881
|
+
self.main_text = m.get('mainText')
|
|
882
|
+
if m.get('markdownText') is not None:
|
|
883
|
+
self.markdown_text = m.get('markdownText')
|
|
884
|
+
if m.get('rerankScore') is not None:
|
|
885
|
+
self.rerank_score = m.get('rerankScore')
|
|
886
|
+
if m.get('summary') is not None:
|
|
887
|
+
self.summary = m.get('summary')
|
|
888
|
+
return self
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
class SearchCredits(TeaModel):
|
|
892
|
+
def __init__(
|
|
893
|
+
self,
|
|
894
|
+
generic_text_search: int = None,
|
|
895
|
+
):
|
|
896
|
+
self.generic_text_search = generic_text_search
|
|
897
|
+
|
|
898
|
+
def validate(self):
|
|
899
|
+
pass
|
|
900
|
+
|
|
901
|
+
def to_map(self):
|
|
902
|
+
_map = super().to_map()
|
|
903
|
+
if _map is not None:
|
|
904
|
+
return _map
|
|
905
|
+
|
|
906
|
+
result = dict()
|
|
907
|
+
if self.generic_text_search is not None:
|
|
908
|
+
result['genericTextSearch'] = self.generic_text_search
|
|
909
|
+
return result
|
|
910
|
+
|
|
911
|
+
def from_map(self, m: dict = None):
|
|
912
|
+
m = m or dict()
|
|
913
|
+
if m.get('genericTextSearch') is not None:
|
|
914
|
+
self.generic_text_search = m.get('genericTextSearch')
|
|
915
|
+
return self
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
class ValueAddedCredits(TeaModel):
|
|
919
|
+
def __init__(
|
|
920
|
+
self,
|
|
921
|
+
advanced: int = None,
|
|
922
|
+
summary: int = None,
|
|
923
|
+
):
|
|
924
|
+
self.advanced = advanced
|
|
925
|
+
self.summary = summary
|
|
926
|
+
|
|
927
|
+
def validate(self):
|
|
928
|
+
pass
|
|
929
|
+
|
|
930
|
+
def to_map(self):
|
|
931
|
+
_map = super().to_map()
|
|
932
|
+
if _map is not None:
|
|
933
|
+
return _map
|
|
934
|
+
|
|
935
|
+
result = dict()
|
|
936
|
+
if self.advanced is not None:
|
|
937
|
+
result['advanced'] = self.advanced
|
|
938
|
+
if self.summary is not None:
|
|
939
|
+
result['summary'] = self.summary
|
|
940
|
+
return result
|
|
941
|
+
|
|
942
|
+
def from_map(self, m: dict = None):
|
|
943
|
+
m = m or dict()
|
|
944
|
+
if m.get('advanced') is not None:
|
|
945
|
+
self.advanced = m.get('advanced')
|
|
946
|
+
if m.get('summary') is not None:
|
|
947
|
+
self.summary = m.get('summary')
|
|
948
|
+
return self
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
class UnifiedCostCredits(TeaModel):
|
|
952
|
+
def __init__(
|
|
953
|
+
self,
|
|
954
|
+
search: SearchCredits = None,
|
|
955
|
+
value_added: ValueAddedCredits = None,
|
|
956
|
+
):
|
|
957
|
+
self.search = search
|
|
958
|
+
self.value_added = value_added
|
|
959
|
+
|
|
960
|
+
def validate(self):
|
|
961
|
+
if self.search:
|
|
962
|
+
self.search.validate()
|
|
963
|
+
if self.value_added:
|
|
964
|
+
self.value_added.validate()
|
|
965
|
+
|
|
966
|
+
def to_map(self):
|
|
967
|
+
_map = super().to_map()
|
|
968
|
+
if _map is not None:
|
|
969
|
+
return _map
|
|
970
|
+
|
|
971
|
+
result = dict()
|
|
972
|
+
if self.search is not None:
|
|
973
|
+
result['search'] = self.search.to_map()
|
|
974
|
+
if self.value_added is not None:
|
|
975
|
+
result['valueAdded'] = self.value_added.to_map()
|
|
976
|
+
return result
|
|
977
|
+
|
|
978
|
+
def from_map(self, m: dict = None):
|
|
979
|
+
m = m or dict()
|
|
980
|
+
if m.get('search') is not None:
|
|
981
|
+
temp_model = SearchCredits()
|
|
982
|
+
self.search = temp_model.from_map(m['search'])
|
|
983
|
+
if m.get('valueAdded') is not None:
|
|
984
|
+
temp_model = ValueAddedCredits()
|
|
985
|
+
self.value_added = temp_model.from_map(m['valueAdded'])
|
|
986
|
+
return self
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
class UnifiedOriginalQuery(TeaModel):
|
|
990
|
+
def __init__(
|
|
991
|
+
self,
|
|
992
|
+
query: str = None,
|
|
993
|
+
time_range: str = None,
|
|
994
|
+
):
|
|
995
|
+
self.query = query
|
|
996
|
+
self.time_range = time_range
|
|
997
|
+
|
|
998
|
+
def validate(self):
|
|
999
|
+
pass
|
|
1000
|
+
|
|
1001
|
+
def to_map(self):
|
|
1002
|
+
_map = super().to_map()
|
|
1003
|
+
if _map is not None:
|
|
1004
|
+
return _map
|
|
1005
|
+
|
|
1006
|
+
result = dict()
|
|
1007
|
+
if self.query is not None:
|
|
1008
|
+
result['query'] = self.query
|
|
1009
|
+
if self.time_range is not None:
|
|
1010
|
+
result['timeRange'] = self.time_range
|
|
1011
|
+
return result
|
|
1012
|
+
|
|
1013
|
+
def from_map(self, m: dict = None):
|
|
1014
|
+
m = m or dict()
|
|
1015
|
+
if m.get('query') is not None:
|
|
1016
|
+
self.query = m.get('query')
|
|
1017
|
+
if m.get('timeRange') is not None:
|
|
1018
|
+
self.time_range = m.get('timeRange')
|
|
1019
|
+
return self
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
class UnifiedPageItem(TeaModel):
|
|
1023
|
+
def __init__(
|
|
1024
|
+
self,
|
|
1025
|
+
host_logo: str = None,
|
|
1026
|
+
hostname: str = None,
|
|
1027
|
+
images: List[str] = None,
|
|
1028
|
+
link: str = None,
|
|
1029
|
+
main_text: str = None,
|
|
1030
|
+
markdown_text: str = None,
|
|
1031
|
+
published_time: str = None,
|
|
1032
|
+
rerank_score: float = None,
|
|
1033
|
+
snippet: str = None,
|
|
1034
|
+
summary: str = None,
|
|
1035
|
+
title: str = None,
|
|
1036
|
+
):
|
|
1037
|
+
self.host_logo = host_logo
|
|
1038
|
+
self.hostname = hostname
|
|
1039
|
+
self.images = images
|
|
1040
|
+
self.link = link
|
|
1041
|
+
self.main_text = main_text
|
|
1042
|
+
self.markdown_text = markdown_text
|
|
1043
|
+
self.published_time = published_time
|
|
1044
|
+
self.rerank_score = rerank_score
|
|
1045
|
+
self.snippet = snippet
|
|
1046
|
+
self.summary = summary
|
|
1047
|
+
self.title = title
|
|
1048
|
+
|
|
1049
|
+
def validate(self):
|
|
1050
|
+
pass
|
|
1051
|
+
|
|
1052
|
+
def to_map(self):
|
|
1053
|
+
_map = super().to_map()
|
|
1054
|
+
if _map is not None:
|
|
1055
|
+
return _map
|
|
1056
|
+
|
|
1057
|
+
result = dict()
|
|
1058
|
+
if self.host_logo is not None:
|
|
1059
|
+
result['hostLogo'] = self.host_logo
|
|
1060
|
+
if self.hostname is not None:
|
|
1061
|
+
result['hostname'] = self.hostname
|
|
1062
|
+
if self.images is not None:
|
|
1063
|
+
result['images'] = self.images
|
|
1064
|
+
if self.link is not None:
|
|
1065
|
+
result['link'] = self.link
|
|
1066
|
+
if self.main_text is not None:
|
|
1067
|
+
result['mainText'] = self.main_text
|
|
1068
|
+
if self.markdown_text is not None:
|
|
1069
|
+
result['markdownText'] = self.markdown_text
|
|
1070
|
+
if self.published_time is not None:
|
|
1071
|
+
result['publishedTime'] = self.published_time
|
|
1072
|
+
if self.rerank_score is not None:
|
|
1073
|
+
result['rerankScore'] = self.rerank_score
|
|
1074
|
+
if self.snippet is not None:
|
|
1075
|
+
result['snippet'] = self.snippet
|
|
1076
|
+
if self.summary is not None:
|
|
1077
|
+
result['summary'] = self.summary
|
|
1078
|
+
if self.title is not None:
|
|
1079
|
+
result['title'] = self.title
|
|
1080
|
+
return result
|
|
1081
|
+
|
|
1082
|
+
def from_map(self, m: dict = None):
|
|
1083
|
+
m = m or dict()
|
|
1084
|
+
if m.get('hostLogo') is not None:
|
|
1085
|
+
self.host_logo = m.get('hostLogo')
|
|
1086
|
+
if m.get('hostname') is not None:
|
|
1087
|
+
self.hostname = m.get('hostname')
|
|
1088
|
+
if m.get('images') is not None:
|
|
1089
|
+
self.images = m.get('images')
|
|
1090
|
+
if m.get('link') is not None:
|
|
1091
|
+
self.link = m.get('link')
|
|
1092
|
+
if m.get('mainText') is not None:
|
|
1093
|
+
self.main_text = m.get('mainText')
|
|
1094
|
+
if m.get('markdownText') is not None:
|
|
1095
|
+
self.markdown_text = m.get('markdownText')
|
|
1096
|
+
if m.get('publishedTime') is not None:
|
|
1097
|
+
self.published_time = m.get('publishedTime')
|
|
1098
|
+
if m.get('rerankScore') is not None:
|
|
1099
|
+
self.rerank_score = m.get('rerankScore')
|
|
1100
|
+
if m.get('snippet') is not None:
|
|
1101
|
+
self.snippet = m.get('snippet')
|
|
1102
|
+
if m.get('summary') is not None:
|
|
1103
|
+
self.summary = m.get('summary')
|
|
1104
|
+
if m.get('title') is not None:
|
|
1105
|
+
self.title = m.get('title')
|
|
1106
|
+
return self
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
class UnifiedRewrite(TeaModel):
|
|
1110
|
+
def __init__(
|
|
1111
|
+
self,
|
|
1112
|
+
enabled: bool = None,
|
|
1113
|
+
time_range: str = None,
|
|
1114
|
+
):
|
|
1115
|
+
self.enabled = enabled
|
|
1116
|
+
self.time_range = time_range
|
|
1117
|
+
|
|
1118
|
+
def validate(self):
|
|
1119
|
+
pass
|
|
1120
|
+
|
|
1121
|
+
def to_map(self):
|
|
1122
|
+
_map = super().to_map()
|
|
1123
|
+
if _map is not None:
|
|
1124
|
+
return _map
|
|
1125
|
+
|
|
1126
|
+
result = dict()
|
|
1127
|
+
if self.enabled is not None:
|
|
1128
|
+
result['enabled'] = self.enabled
|
|
1129
|
+
if self.time_range is not None:
|
|
1130
|
+
result['timeRange'] = self.time_range
|
|
1131
|
+
return result
|
|
1132
|
+
|
|
1133
|
+
def from_map(self, m: dict = None):
|
|
1134
|
+
m = m or dict()
|
|
1135
|
+
if m.get('enabled') is not None:
|
|
1136
|
+
self.enabled = m.get('enabled')
|
|
1137
|
+
if m.get('timeRange') is not None:
|
|
1138
|
+
self.time_range = m.get('timeRange')
|
|
1139
|
+
return self
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
class UnifiedQueryContext(TeaModel):
|
|
1143
|
+
def __init__(
|
|
1144
|
+
self,
|
|
1145
|
+
engine_type: str = None,
|
|
1146
|
+
original_query: UnifiedOriginalQuery = None,
|
|
1147
|
+
rewrite: UnifiedRewrite = None,
|
|
1148
|
+
):
|
|
1149
|
+
self.engine_type = engine_type
|
|
1150
|
+
self.original_query = original_query
|
|
1151
|
+
self.rewrite = rewrite
|
|
1152
|
+
|
|
1153
|
+
def validate(self):
|
|
1154
|
+
if self.original_query:
|
|
1155
|
+
self.original_query.validate()
|
|
1156
|
+
if self.rewrite:
|
|
1157
|
+
self.rewrite.validate()
|
|
1158
|
+
|
|
1159
|
+
def to_map(self):
|
|
1160
|
+
_map = super().to_map()
|
|
1161
|
+
if _map is not None:
|
|
1162
|
+
return _map
|
|
1163
|
+
|
|
1164
|
+
result = dict()
|
|
1165
|
+
if self.engine_type is not None:
|
|
1166
|
+
result['engineType'] = self.engine_type
|
|
1167
|
+
if self.original_query is not None:
|
|
1168
|
+
result['originalQuery'] = self.original_query.to_map()
|
|
1169
|
+
if self.rewrite is not None:
|
|
1170
|
+
result['rewrite'] = self.rewrite.to_map()
|
|
1171
|
+
return result
|
|
1172
|
+
|
|
1173
|
+
def from_map(self, m: dict = None):
|
|
1174
|
+
m = m or dict()
|
|
1175
|
+
if m.get('engineType') is not None:
|
|
1176
|
+
self.engine_type = m.get('engineType')
|
|
1177
|
+
if m.get('originalQuery') is not None:
|
|
1178
|
+
temp_model = UnifiedOriginalQuery()
|
|
1179
|
+
self.original_query = temp_model.from_map(m['originalQuery'])
|
|
1180
|
+
if m.get('rewrite') is not None:
|
|
1181
|
+
temp_model = UnifiedRewrite()
|
|
1182
|
+
self.rewrite = temp_model.from_map(m['rewrite'])
|
|
1183
|
+
return self
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
class UnifiedSceneItem(TeaModel):
|
|
1187
|
+
def __init__(
|
|
1188
|
+
self,
|
|
1189
|
+
detail: str = None,
|
|
1190
|
+
type: str = None,
|
|
1191
|
+
):
|
|
1192
|
+
self.detail = detail
|
|
1193
|
+
self.type = type
|
|
1194
|
+
|
|
1195
|
+
def validate(self):
|
|
1196
|
+
pass
|
|
1197
|
+
|
|
1198
|
+
def to_map(self):
|
|
1199
|
+
_map = super().to_map()
|
|
1200
|
+
if _map is not None:
|
|
1201
|
+
return _map
|
|
1202
|
+
|
|
1203
|
+
result = dict()
|
|
1204
|
+
if self.detail is not None:
|
|
1205
|
+
result['detail'] = self.detail
|
|
1206
|
+
if self.type is not None:
|
|
1207
|
+
result['type'] = self.type
|
|
1208
|
+
return result
|
|
1209
|
+
|
|
1210
|
+
def from_map(self, m: dict = None):
|
|
1211
|
+
m = m or dict()
|
|
1212
|
+
if m.get('detail') is not None:
|
|
1213
|
+
self.detail = m.get('detail')
|
|
1214
|
+
if m.get('type') is not None:
|
|
1215
|
+
self.type = m.get('type')
|
|
1216
|
+
return self
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
class UnifiedSearchInformation(TeaModel):
|
|
1220
|
+
def __init__(
|
|
1221
|
+
self,
|
|
1222
|
+
search_time: int = None,
|
|
1223
|
+
):
|
|
1224
|
+
self.search_time = search_time
|
|
1225
|
+
|
|
1226
|
+
def validate(self):
|
|
1227
|
+
pass
|
|
1228
|
+
|
|
1229
|
+
def to_map(self):
|
|
1230
|
+
_map = super().to_map()
|
|
1231
|
+
if _map is not None:
|
|
1232
|
+
return _map
|
|
1233
|
+
|
|
1234
|
+
result = dict()
|
|
1235
|
+
if self.search_time is not None:
|
|
1236
|
+
result['searchTime'] = self.search_time
|
|
1237
|
+
return result
|
|
1238
|
+
|
|
1239
|
+
def from_map(self, m: dict = None):
|
|
1240
|
+
m = m or dict()
|
|
1241
|
+
if m.get('searchTime') is not None:
|
|
1242
|
+
self.search_time = m.get('searchTime')
|
|
1243
|
+
return self
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
class UnifiedSearchRequest(TeaModel):
|
|
1247
|
+
def __init__(
|
|
1248
|
+
self,
|
|
1249
|
+
category: str = None,
|
|
1250
|
+
contents: RequestContents = None,
|
|
1251
|
+
engine_type: str = None,
|
|
1252
|
+
query: str = None,
|
|
1253
|
+
time_range: str = None,
|
|
1254
|
+
):
|
|
1255
|
+
self.category = category
|
|
1256
|
+
self.contents = contents
|
|
1257
|
+
self.engine_type = engine_type
|
|
1258
|
+
self.query = query
|
|
1259
|
+
self.time_range = time_range
|
|
1260
|
+
|
|
1261
|
+
def validate(self):
|
|
1262
|
+
if self.contents:
|
|
1263
|
+
self.contents.validate()
|
|
1264
|
+
|
|
1265
|
+
def to_map(self):
|
|
1266
|
+
_map = super().to_map()
|
|
1267
|
+
if _map is not None:
|
|
1268
|
+
return _map
|
|
1269
|
+
|
|
1270
|
+
result = dict()
|
|
1271
|
+
if self.category is not None:
|
|
1272
|
+
result['category'] = self.category
|
|
1273
|
+
if self.contents is not None:
|
|
1274
|
+
result['contents'] = self.contents.to_map()
|
|
1275
|
+
if self.engine_type is not None:
|
|
1276
|
+
result['engineType'] = self.engine_type
|
|
1277
|
+
if self.query is not None:
|
|
1278
|
+
result['query'] = self.query
|
|
1279
|
+
if self.time_range is not None:
|
|
1280
|
+
result['timeRange'] = self.time_range
|
|
1281
|
+
return result
|
|
1282
|
+
|
|
1283
|
+
def from_map(self, m: dict = None):
|
|
1284
|
+
m = m or dict()
|
|
1285
|
+
if m.get('category') is not None:
|
|
1286
|
+
self.category = m.get('category')
|
|
1287
|
+
if m.get('contents') is not None:
|
|
1288
|
+
temp_model = RequestContents()
|
|
1289
|
+
self.contents = temp_model.from_map(m['contents'])
|
|
1290
|
+
if m.get('engineType') is not None:
|
|
1291
|
+
self.engine_type = m.get('engineType')
|
|
1292
|
+
if m.get('query') is not None:
|
|
1293
|
+
self.query = m.get('query')
|
|
1294
|
+
if m.get('timeRange') is not None:
|
|
1295
|
+
self.time_range = m.get('timeRange')
|
|
1296
|
+
return self
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
class UnifiedSearchResponse(TeaModel):
|
|
1300
|
+
def __init__(
|
|
1301
|
+
self,
|
|
1302
|
+
cost_credits: UnifiedCostCredits = None,
|
|
1303
|
+
page_items: List[UnifiedPageItem] = None,
|
|
1304
|
+
query_context: UnifiedQueryContext = None,
|
|
1305
|
+
request_id: str = None,
|
|
1306
|
+
scene_items: List[UnifiedSceneItem] = None,
|
|
1307
|
+
search_information: UnifiedSearchInformation = None,
|
|
1308
|
+
):
|
|
1309
|
+
self.cost_credits = cost_credits
|
|
1310
|
+
self.page_items = page_items
|
|
1311
|
+
self.query_context = query_context
|
|
1312
|
+
self.request_id = request_id
|
|
1313
|
+
self.scene_items = scene_items
|
|
1314
|
+
self.search_information = search_information
|
|
1315
|
+
|
|
1316
|
+
def validate(self):
|
|
1317
|
+
if self.cost_credits:
|
|
1318
|
+
self.cost_credits.validate()
|
|
1319
|
+
if self.page_items:
|
|
1320
|
+
for k in self.page_items:
|
|
1321
|
+
if k:
|
|
1322
|
+
k.validate()
|
|
1323
|
+
if self.query_context:
|
|
1324
|
+
self.query_context.validate()
|
|
1325
|
+
if self.scene_items:
|
|
1326
|
+
for k in self.scene_items:
|
|
1327
|
+
if k:
|
|
1328
|
+
k.validate()
|
|
1329
|
+
if self.search_information:
|
|
1330
|
+
self.search_information.validate()
|
|
1331
|
+
|
|
1332
|
+
def to_map(self):
|
|
1333
|
+
_map = super().to_map()
|
|
1334
|
+
if _map is not None:
|
|
1335
|
+
return _map
|
|
1336
|
+
|
|
1337
|
+
result = dict()
|
|
1338
|
+
if self.cost_credits is not None:
|
|
1339
|
+
result['costCredits'] = self.cost_credits.to_map()
|
|
1340
|
+
result['pageItems'] = []
|
|
1341
|
+
if self.page_items is not None:
|
|
1342
|
+
for k in self.page_items:
|
|
1343
|
+
result['pageItems'].append(k.to_map() if k else None)
|
|
1344
|
+
if self.query_context is not None:
|
|
1345
|
+
result['queryContext'] = self.query_context.to_map()
|
|
1346
|
+
if self.request_id is not None:
|
|
1347
|
+
result['requestId'] = self.request_id
|
|
1348
|
+
result['sceneItems'] = []
|
|
1349
|
+
if self.scene_items is not None:
|
|
1350
|
+
for k in self.scene_items:
|
|
1351
|
+
result['sceneItems'].append(k.to_map() if k else None)
|
|
1352
|
+
if self.search_information is not None:
|
|
1353
|
+
result['searchInformation'] = self.search_information.to_map()
|
|
1354
|
+
return result
|
|
1355
|
+
|
|
1356
|
+
def from_map(self, m: dict = None):
|
|
1357
|
+
m = m or dict()
|
|
1358
|
+
if m.get('costCredits') is not None:
|
|
1359
|
+
temp_model = UnifiedCostCredits()
|
|
1360
|
+
self.cost_credits = temp_model.from_map(m['costCredits'])
|
|
1361
|
+
self.page_items = []
|
|
1362
|
+
if m.get('pageItems') is not None:
|
|
1363
|
+
for k in m.get('pageItems'):
|
|
1364
|
+
temp_model = UnifiedPageItem()
|
|
1365
|
+
self.page_items.append(temp_model.from_map(k))
|
|
1366
|
+
if m.get('queryContext') is not None:
|
|
1367
|
+
temp_model = UnifiedQueryContext()
|
|
1368
|
+
self.query_context = temp_model.from_map(m['queryContext'])
|
|
1369
|
+
if m.get('requestId') is not None:
|
|
1370
|
+
self.request_id = m.get('requestId')
|
|
1371
|
+
self.scene_items = []
|
|
1372
|
+
if m.get('sceneItems') is not None:
|
|
1373
|
+
for k in m.get('sceneItems'):
|
|
1374
|
+
temp_model = UnifiedSceneItem()
|
|
1375
|
+
self.scene_items.append(temp_model.from_map(k))
|
|
1376
|
+
if m.get('searchInformation') is not None:
|
|
1377
|
+
temp_model = UnifiedSearchInformation()
|
|
1378
|
+
self.search_information = temp_model.from_map(m['searchInformation'])
|
|
1379
|
+
return self
|
|
1380
|
+
|
|
1381
|
+
|
|
846
1382
|
class AiSearchRequest(TeaModel):
|
|
847
1383
|
def __init__(
|
|
848
1384
|
self,
|
{alibabacloud_iqs20241111-1.2.0.dist-info → alibabacloud_iqs20241111-1.2.1.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: alibabacloud-iqs20241111
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.1
|
|
4
4
|
Summary: Alibaba Cloud IQS (20241111) SDK Library for Python
|
|
5
5
|
Home-page: https://github.com/aliyun/alibabacloud-python-sdk
|
|
6
6
|
Author: Alibaba Cloud SDK
|
|
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
|
|
|
23
23
|
License-File: LICENSE
|
|
24
24
|
Requires-Dist: alibabacloud-endpoint-util (<1.0.0,>=0.0.3)
|
|
25
25
|
Requires-Dist: alibabacloud-openapi-util (<1.0.0,>=0.2.2)
|
|
26
|
-
Requires-Dist: alibabacloud-tea-openapi (<1.0.0,>=0.3.
|
|
26
|
+
Requires-Dist: alibabacloud-tea-openapi (<1.0.0,>=0.3.15)
|
|
27
27
|
Requires-Dist: alibabacloud-tea-util (<1.0.0,>=0.3.13)
|
|
28
28
|
|
|
29
29
|
English | [简体中文](README-CN.md)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
alibabacloud_iqs20241111/__init__.py,sha256=VvDq5py76uDFeq6tv3EFMgTHX4rtDyt6nw0tPm3Wrkk,21
|
|
2
|
+
alibabacloud_iqs20241111/client.py,sha256=KXP5S-GhFby3Bu6l0nOYwlY7PvBWZNPGE6jhR5dUuh8,19926
|
|
3
|
+
alibabacloud_iqs20241111/models.py,sha256=Xv4dY8o9nWybFof3MYRPZ9xIGHXAq4-hVKJ1fzvIKOU,60643
|
|
4
|
+
alibabacloud_iqs20241111-1.2.1.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
+
alibabacloud_iqs20241111-1.2.1.dist-info/METADATA,sha256=2D2D3I8Ne6JHj7RSlRUaxqNLDhbMUqm8MtbvR7iiLH8,2312
|
|
6
|
+
alibabacloud_iqs20241111-1.2.1.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
7
|
+
alibabacloud_iqs20241111-1.2.1.dist-info/top_level.txt,sha256=DCTUMSkrMH7RuTTLUEqGJeM2_EXN79YXzwpAtYbk-bU,25
|
|
8
|
+
alibabacloud_iqs20241111-1.2.1.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
alibabacloud_iqs20241111/__init__.py,sha256=5GblYyMbk8JySosj59Rvi2uzLqfP-DAs77ikwTafXT4,21
|
|
2
|
-
alibabacloud_iqs20241111/client.py,sha256=LIgSzaWYWggXg0hnL1851gYBIaYzQlvsArmSAiu-2WM,22466
|
|
3
|
-
alibabacloud_iqs20241111/models.py,sha256=vX-jrhCKMCUtePuC8i_paQl99sWbmp8C5Bn9EIaWQ4Y,44321
|
|
4
|
-
alibabacloud_iqs20241111-1.2.0.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
-
alibabacloud_iqs20241111-1.2.0.dist-info/METADATA,sha256=ornUkuN9nNITPkWtlmVSRBXCjs8FKDe2GQOvA2TjVLg,2312
|
|
6
|
-
alibabacloud_iqs20241111-1.2.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
7
|
-
alibabacloud_iqs20241111-1.2.0.dist-info/top_level.txt,sha256=DCTUMSkrMH7RuTTLUEqGJeM2_EXN79YXzwpAtYbk-bU,25
|
|
8
|
-
alibabacloud_iqs20241111-1.2.0.dist-info/RECORD,,
|
{alibabacloud_iqs20241111-1.2.0.dist-info → alibabacloud_iqs20241111-1.2.1.dist-info}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
{alibabacloud_iqs20241111-1.2.0.dist-info → alibabacloud_iqs20241111-1.2.1.dist-info}/top_level.txt
RENAMED
|
File without changes
|