alibabacloud-aimiaobi20230801 1.38.5__py3-none-any.whl → 1.38.6__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_aimiaobi20230801/__init__.py +1 -1
- alibabacloud_aimiaobi20230801/client.py +148 -4
- alibabacloud_aimiaobi20230801/models/__init__.py +14 -0
- alibabacloud_aimiaobi20230801/models/_add_dataset_document_request.py +68 -0
- alibabacloud_aimiaobi20230801/models/_create_dataset_request.py +62 -0
- alibabacloud_aimiaobi20230801/models/_get_dataset_document_response_body.py +92 -0
- alibabacloud_aimiaobi20230801/models/_get_dataset_response_body.py +62 -0
- alibabacloud_aimiaobi20230801/models/_list_dataset_documents_request.py +96 -0
- alibabacloud_aimiaobi20230801/models/_list_dataset_documents_response_body.py +24 -0
- alibabacloud_aimiaobi20230801/models/_list_dataset_documents_shrink_request.py +96 -0
- alibabacloud_aimiaobi20230801/models/_run_search_generation_request.py +72 -0
- alibabacloud_aimiaobi20230801/models/_run_search_generation_response_body.py +528 -0
- alibabacloud_aimiaobi20230801/models/_run_search_similar_articles_request.py +96 -0
- alibabacloud_aimiaobi20230801/models/_run_search_similar_articles_response_body.py +64 -0
- alibabacloud_aimiaobi20230801/models/_search_dataset_documents_request.py +98 -0
- alibabacloud_aimiaobi20230801/models/_search_dataset_documents_response_body.py +140 -1
- alibabacloud_aimiaobi20230801/models/_search_dataset_documents_shrink_request.py +179 -0
- alibabacloud_aimiaobi20230801/models/_update_dataset_document_request.py +42 -0
- alibabacloud_aimiaobi20230801/models/_update_dataset_document_response_body.py +42 -0
- alibabacloud_aimiaobi20230801/models/_update_dataset_request.py +62 -0
- {alibabacloud_aimiaobi20230801-1.38.5.dist-info → alibabacloud_aimiaobi20230801-1.38.6.dist-info}/METADATA +1 -1
- {alibabacloud_aimiaobi20230801-1.38.5.dist-info → alibabacloud_aimiaobi20230801-1.38.6.dist-info}/RECORD +25 -24
- {alibabacloud_aimiaobi20230801-1.38.5.dist-info → alibabacloud_aimiaobi20230801-1.38.6.dist-info}/LICENSE +0 -0
- {alibabacloud_aimiaobi20230801-1.38.5.dist-info → alibabacloud_aimiaobi20230801-1.38.6.dist-info}/WHEEL +0 -0
- {alibabacloud_aimiaobi20230801-1.38.5.dist-info → alibabacloud_aimiaobi20230801-1.38.6.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.38.
|
|
1
|
+
__version__ = '1.38.6'
|
|
@@ -8519,10 +8519,43 @@ class Client(OpenApiClient):
|
|
|
8519
8519
|
tmp_req.validate()
|
|
8520
8520
|
request = main_models.ListDatasetDocumentsShrinkRequest()
|
|
8521
8521
|
Utils.convert(tmp_req, request)
|
|
8522
|
+
if not DaraCore.is_null(tmp_req.category_uuids):
|
|
8523
|
+
request.category_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.category_uuids, 'CategoryUuids', 'json')
|
|
8524
|
+
if not DaraCore.is_null(tmp_req.doc_ids):
|
|
8525
|
+
request.doc_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_ids, 'DocIds', 'json')
|
|
8526
|
+
if not DaraCore.is_null(tmp_req.doc_uuids):
|
|
8527
|
+
request.doc_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_uuids, 'DocUuids', 'json')
|
|
8522
8528
|
if not DaraCore.is_null(tmp_req.exclude_fields):
|
|
8523
8529
|
request.exclude_fields_shrink = Utils.array_to_string_with_specified_style(tmp_req.exclude_fields, 'ExcludeFields', 'json')
|
|
8524
8530
|
if not DaraCore.is_null(tmp_req.include_fields):
|
|
8525
8531
|
request.include_fields_shrink = Utils.array_to_string_with_specified_style(tmp_req.include_fields, 'IncludeFields', 'json')
|
|
8532
|
+
if not DaraCore.is_null(tmp_req.tags):
|
|
8533
|
+
request.tags_shrink = Utils.array_to_string_with_specified_style(tmp_req.tags, 'Tags', 'json')
|
|
8534
|
+
query = {}
|
|
8535
|
+
if not DaraCore.is_null(request.category_uuids_shrink):
|
|
8536
|
+
query['CategoryUuids'] = request.category_uuids_shrink
|
|
8537
|
+
if not DaraCore.is_null(request.create_time_end):
|
|
8538
|
+
query['CreateTimeEnd'] = request.create_time_end
|
|
8539
|
+
if not DaraCore.is_null(request.create_time_start):
|
|
8540
|
+
query['CreateTimeStart'] = request.create_time_start
|
|
8541
|
+
if not DaraCore.is_null(request.doc_ids_shrink):
|
|
8542
|
+
query['DocIds'] = request.doc_ids_shrink
|
|
8543
|
+
if not DaraCore.is_null(request.doc_uuids_shrink):
|
|
8544
|
+
query['DocUuids'] = request.doc_uuids_shrink
|
|
8545
|
+
if not DaraCore.is_null(request.end_time):
|
|
8546
|
+
query['EndTime'] = request.end_time
|
|
8547
|
+
if not DaraCore.is_null(request.extend_1):
|
|
8548
|
+
query['Extend1'] = request.extend_1
|
|
8549
|
+
if not DaraCore.is_null(request.extend_2):
|
|
8550
|
+
query['Extend2'] = request.extend_2
|
|
8551
|
+
if not DaraCore.is_null(request.extend_3):
|
|
8552
|
+
query['Extend3'] = request.extend_3
|
|
8553
|
+
if not DaraCore.is_null(request.start_time):
|
|
8554
|
+
query['StartTime'] = request.start_time
|
|
8555
|
+
if not DaraCore.is_null(request.tags_shrink):
|
|
8556
|
+
query['Tags'] = request.tags_shrink
|
|
8557
|
+
if not DaraCore.is_null(request.title):
|
|
8558
|
+
query['Title'] = request.title
|
|
8526
8559
|
body = {}
|
|
8527
8560
|
if not DaraCore.is_null(request.dataset_description):
|
|
8528
8561
|
body['DatasetDescription'] = request.dataset_description
|
|
@@ -8547,6 +8580,7 @@ class Client(OpenApiClient):
|
|
|
8547
8580
|
if not DaraCore.is_null(request.workspace_id):
|
|
8548
8581
|
body['WorkspaceId'] = request.workspace_id
|
|
8549
8582
|
req = open_api_util_models.OpenApiRequest(
|
|
8583
|
+
query = Utils.query(query),
|
|
8550
8584
|
body = Utils.parse_to_map(body)
|
|
8551
8585
|
)
|
|
8552
8586
|
params = open_api_util_models.Params(
|
|
@@ -8573,10 +8607,43 @@ class Client(OpenApiClient):
|
|
|
8573
8607
|
tmp_req.validate()
|
|
8574
8608
|
request = main_models.ListDatasetDocumentsShrinkRequest()
|
|
8575
8609
|
Utils.convert(tmp_req, request)
|
|
8610
|
+
if not DaraCore.is_null(tmp_req.category_uuids):
|
|
8611
|
+
request.category_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.category_uuids, 'CategoryUuids', 'json')
|
|
8612
|
+
if not DaraCore.is_null(tmp_req.doc_ids):
|
|
8613
|
+
request.doc_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_ids, 'DocIds', 'json')
|
|
8614
|
+
if not DaraCore.is_null(tmp_req.doc_uuids):
|
|
8615
|
+
request.doc_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_uuids, 'DocUuids', 'json')
|
|
8576
8616
|
if not DaraCore.is_null(tmp_req.exclude_fields):
|
|
8577
8617
|
request.exclude_fields_shrink = Utils.array_to_string_with_specified_style(tmp_req.exclude_fields, 'ExcludeFields', 'json')
|
|
8578
8618
|
if not DaraCore.is_null(tmp_req.include_fields):
|
|
8579
8619
|
request.include_fields_shrink = Utils.array_to_string_with_specified_style(tmp_req.include_fields, 'IncludeFields', 'json')
|
|
8620
|
+
if not DaraCore.is_null(tmp_req.tags):
|
|
8621
|
+
request.tags_shrink = Utils.array_to_string_with_specified_style(tmp_req.tags, 'Tags', 'json')
|
|
8622
|
+
query = {}
|
|
8623
|
+
if not DaraCore.is_null(request.category_uuids_shrink):
|
|
8624
|
+
query['CategoryUuids'] = request.category_uuids_shrink
|
|
8625
|
+
if not DaraCore.is_null(request.create_time_end):
|
|
8626
|
+
query['CreateTimeEnd'] = request.create_time_end
|
|
8627
|
+
if not DaraCore.is_null(request.create_time_start):
|
|
8628
|
+
query['CreateTimeStart'] = request.create_time_start
|
|
8629
|
+
if not DaraCore.is_null(request.doc_ids_shrink):
|
|
8630
|
+
query['DocIds'] = request.doc_ids_shrink
|
|
8631
|
+
if not DaraCore.is_null(request.doc_uuids_shrink):
|
|
8632
|
+
query['DocUuids'] = request.doc_uuids_shrink
|
|
8633
|
+
if not DaraCore.is_null(request.end_time):
|
|
8634
|
+
query['EndTime'] = request.end_time
|
|
8635
|
+
if not DaraCore.is_null(request.extend_1):
|
|
8636
|
+
query['Extend1'] = request.extend_1
|
|
8637
|
+
if not DaraCore.is_null(request.extend_2):
|
|
8638
|
+
query['Extend2'] = request.extend_2
|
|
8639
|
+
if not DaraCore.is_null(request.extend_3):
|
|
8640
|
+
query['Extend3'] = request.extend_3
|
|
8641
|
+
if not DaraCore.is_null(request.start_time):
|
|
8642
|
+
query['StartTime'] = request.start_time
|
|
8643
|
+
if not DaraCore.is_null(request.tags_shrink):
|
|
8644
|
+
query['Tags'] = request.tags_shrink
|
|
8645
|
+
if not DaraCore.is_null(request.title):
|
|
8646
|
+
query['Title'] = request.title
|
|
8580
8647
|
body = {}
|
|
8581
8648
|
if not DaraCore.is_null(request.dataset_description):
|
|
8582
8649
|
body['DatasetDescription'] = request.dataset_description
|
|
@@ -8601,6 +8668,7 @@ class Client(OpenApiClient):
|
|
|
8601
8668
|
if not DaraCore.is_null(request.workspace_id):
|
|
8602
8669
|
body['WorkspaceId'] = request.workspace_id
|
|
8603
8670
|
req = open_api_util_models.OpenApiRequest(
|
|
8671
|
+
query = Utils.query(query),
|
|
8604
8672
|
body = Utils.parse_to_map(body)
|
|
8605
8673
|
)
|
|
8606
8674
|
params = open_api_util_models.Params(
|
|
@@ -19025,10 +19093,47 @@ class Client(OpenApiClient):
|
|
|
19025
19093
|
|
|
19026
19094
|
def search_dataset_documents_with_options(
|
|
19027
19095
|
self,
|
|
19028
|
-
|
|
19096
|
+
tmp_req: main_models.SearchDatasetDocumentsRequest,
|
|
19029
19097
|
runtime: RuntimeOptions,
|
|
19030
19098
|
) -> main_models.SearchDatasetDocumentsResponse:
|
|
19031
|
-
|
|
19099
|
+
tmp_req.validate()
|
|
19100
|
+
request = main_models.SearchDatasetDocumentsShrinkRequest()
|
|
19101
|
+
Utils.convert(tmp_req, request)
|
|
19102
|
+
if not DaraCore.is_null(tmp_req.category_uuids):
|
|
19103
|
+
request.category_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.category_uuids, 'CategoryUuids', 'json')
|
|
19104
|
+
if not DaraCore.is_null(tmp_req.doc_ids):
|
|
19105
|
+
request.doc_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_ids, 'DocIds', 'json')
|
|
19106
|
+
if not DaraCore.is_null(tmp_req.doc_types):
|
|
19107
|
+
request.doc_types_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_types, 'DocTypes', 'json')
|
|
19108
|
+
if not DaraCore.is_null(tmp_req.doc_uuids):
|
|
19109
|
+
request.doc_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_uuids, 'DocUuids', 'json')
|
|
19110
|
+
if not DaraCore.is_null(tmp_req.tags):
|
|
19111
|
+
request.tags_shrink = Utils.array_to_string_with_specified_style(tmp_req.tags, 'Tags', 'json')
|
|
19112
|
+
query = {}
|
|
19113
|
+
if not DaraCore.is_null(request.category_uuids_shrink):
|
|
19114
|
+
query['CategoryUuids'] = request.category_uuids_shrink
|
|
19115
|
+
if not DaraCore.is_null(request.create_time_end):
|
|
19116
|
+
query['CreateTimeEnd'] = request.create_time_end
|
|
19117
|
+
if not DaraCore.is_null(request.create_time_start):
|
|
19118
|
+
query['CreateTimeStart'] = request.create_time_start
|
|
19119
|
+
if not DaraCore.is_null(request.doc_ids_shrink):
|
|
19120
|
+
query['DocIds'] = request.doc_ids_shrink
|
|
19121
|
+
if not DaraCore.is_null(request.doc_types_shrink):
|
|
19122
|
+
query['DocTypes'] = request.doc_types_shrink
|
|
19123
|
+
if not DaraCore.is_null(request.doc_uuids_shrink):
|
|
19124
|
+
query['DocUuids'] = request.doc_uuids_shrink
|
|
19125
|
+
if not DaraCore.is_null(request.end_time):
|
|
19126
|
+
query['EndTime'] = request.end_time
|
|
19127
|
+
if not DaraCore.is_null(request.extend_2):
|
|
19128
|
+
query['Extend2'] = request.extend_2
|
|
19129
|
+
if not DaraCore.is_null(request.extend_3):
|
|
19130
|
+
query['Extend3'] = request.extend_3
|
|
19131
|
+
if not DaraCore.is_null(request.search_mode):
|
|
19132
|
+
query['SearchMode'] = request.search_mode
|
|
19133
|
+
if not DaraCore.is_null(request.start_time):
|
|
19134
|
+
query['StartTime'] = request.start_time
|
|
19135
|
+
if not DaraCore.is_null(request.tags_shrink):
|
|
19136
|
+
query['Tags'] = request.tags_shrink
|
|
19032
19137
|
body = {}
|
|
19033
19138
|
if not DaraCore.is_null(request.dataset_id):
|
|
19034
19139
|
body['DatasetId'] = request.dataset_id
|
|
@@ -19045,6 +19150,7 @@ class Client(OpenApiClient):
|
|
|
19045
19150
|
if not DaraCore.is_null(request.workspace_id):
|
|
19046
19151
|
body['WorkspaceId'] = request.workspace_id
|
|
19047
19152
|
req = open_api_util_models.OpenApiRequest(
|
|
19153
|
+
query = Utils.query(query),
|
|
19048
19154
|
body = Utils.parse_to_map(body)
|
|
19049
19155
|
)
|
|
19050
19156
|
params = open_api_util_models.Params(
|
|
@@ -19065,10 +19171,47 @@ class Client(OpenApiClient):
|
|
|
19065
19171
|
|
|
19066
19172
|
async def search_dataset_documents_with_options_async(
|
|
19067
19173
|
self,
|
|
19068
|
-
|
|
19174
|
+
tmp_req: main_models.SearchDatasetDocumentsRequest,
|
|
19069
19175
|
runtime: RuntimeOptions,
|
|
19070
19176
|
) -> main_models.SearchDatasetDocumentsResponse:
|
|
19071
|
-
|
|
19177
|
+
tmp_req.validate()
|
|
19178
|
+
request = main_models.SearchDatasetDocumentsShrinkRequest()
|
|
19179
|
+
Utils.convert(tmp_req, request)
|
|
19180
|
+
if not DaraCore.is_null(tmp_req.category_uuids):
|
|
19181
|
+
request.category_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.category_uuids, 'CategoryUuids', 'json')
|
|
19182
|
+
if not DaraCore.is_null(tmp_req.doc_ids):
|
|
19183
|
+
request.doc_ids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_ids, 'DocIds', 'json')
|
|
19184
|
+
if not DaraCore.is_null(tmp_req.doc_types):
|
|
19185
|
+
request.doc_types_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_types, 'DocTypes', 'json')
|
|
19186
|
+
if not DaraCore.is_null(tmp_req.doc_uuids):
|
|
19187
|
+
request.doc_uuids_shrink = Utils.array_to_string_with_specified_style(tmp_req.doc_uuids, 'DocUuids', 'json')
|
|
19188
|
+
if not DaraCore.is_null(tmp_req.tags):
|
|
19189
|
+
request.tags_shrink = Utils.array_to_string_with_specified_style(tmp_req.tags, 'Tags', 'json')
|
|
19190
|
+
query = {}
|
|
19191
|
+
if not DaraCore.is_null(request.category_uuids_shrink):
|
|
19192
|
+
query['CategoryUuids'] = request.category_uuids_shrink
|
|
19193
|
+
if not DaraCore.is_null(request.create_time_end):
|
|
19194
|
+
query['CreateTimeEnd'] = request.create_time_end
|
|
19195
|
+
if not DaraCore.is_null(request.create_time_start):
|
|
19196
|
+
query['CreateTimeStart'] = request.create_time_start
|
|
19197
|
+
if not DaraCore.is_null(request.doc_ids_shrink):
|
|
19198
|
+
query['DocIds'] = request.doc_ids_shrink
|
|
19199
|
+
if not DaraCore.is_null(request.doc_types_shrink):
|
|
19200
|
+
query['DocTypes'] = request.doc_types_shrink
|
|
19201
|
+
if not DaraCore.is_null(request.doc_uuids_shrink):
|
|
19202
|
+
query['DocUuids'] = request.doc_uuids_shrink
|
|
19203
|
+
if not DaraCore.is_null(request.end_time):
|
|
19204
|
+
query['EndTime'] = request.end_time
|
|
19205
|
+
if not DaraCore.is_null(request.extend_2):
|
|
19206
|
+
query['Extend2'] = request.extend_2
|
|
19207
|
+
if not DaraCore.is_null(request.extend_3):
|
|
19208
|
+
query['Extend3'] = request.extend_3
|
|
19209
|
+
if not DaraCore.is_null(request.search_mode):
|
|
19210
|
+
query['SearchMode'] = request.search_mode
|
|
19211
|
+
if not DaraCore.is_null(request.start_time):
|
|
19212
|
+
query['StartTime'] = request.start_time
|
|
19213
|
+
if not DaraCore.is_null(request.tags_shrink):
|
|
19214
|
+
query['Tags'] = request.tags_shrink
|
|
19072
19215
|
body = {}
|
|
19073
19216
|
if not DaraCore.is_null(request.dataset_id):
|
|
19074
19217
|
body['DatasetId'] = request.dataset_id
|
|
@@ -19085,6 +19228,7 @@ class Client(OpenApiClient):
|
|
|
19085
19228
|
if not DaraCore.is_null(request.workspace_id):
|
|
19086
19229
|
body['WorkspaceId'] = request.workspace_id
|
|
19087
19230
|
req = open_api_util_models.OpenApiRequest(
|
|
19231
|
+
query = Utils.query(query),
|
|
19088
19232
|
body = Utils.parse_to_map(body)
|
|
19089
19233
|
)
|
|
19090
19234
|
params = open_api_util_models.Params(
|
|
@@ -580,6 +580,7 @@ from ._save_style_learning_result_shrink_request import SaveStyleLearningResultS
|
|
|
580
580
|
from ._save_style_learning_result_response_body import SaveStyleLearningResultResponseBody
|
|
581
581
|
from ._save_style_learning_result_response import SaveStyleLearningResultResponse
|
|
582
582
|
from ._search_dataset_documents_request import SearchDatasetDocumentsRequest
|
|
583
|
+
from ._search_dataset_documents_shrink_request import SearchDatasetDocumentsShrinkRequest
|
|
583
584
|
from ._search_dataset_documents_response_body import SearchDatasetDocumentsResponseBody
|
|
584
585
|
from ._search_dataset_documents_response import SearchDatasetDocumentsResponse
|
|
585
586
|
from ._search_news_request import SearchNewsRequest
|
|
@@ -681,6 +682,7 @@ from ._writing_style_template_field import WritingStyleTemplateFieldEnums
|
|
|
681
682
|
from ._writing_style_template_field import WritingStyleTemplateFieldStyle
|
|
682
683
|
from ._add_audit_terms_response_body import AddAuditTermsResponseBodyDataV1
|
|
683
684
|
from ._add_dataset_document_request import AddDatasetDocumentRequestDocumentMetadataAsrSentences
|
|
685
|
+
from ._add_dataset_document_request import AddDatasetDocumentRequestDocumentMetadataKeyValues
|
|
684
686
|
from ._add_dataset_document_request import AddDatasetDocumentRequestDocumentMetadataVideoShots
|
|
685
687
|
from ._add_dataset_document_request import AddDatasetDocumentRequestDocumentMetadata
|
|
686
688
|
from ._add_dataset_document_request import AddDatasetDocumentRequestDocumentMultimodalMedias
|
|
@@ -704,6 +706,7 @@ from ._async_writing_bidding_doc_response_body import AsyncWritingBiddingDocResp
|
|
|
704
706
|
from ._bind_ppt_artifact_response_body import BindPptArtifactResponseBodyData
|
|
705
707
|
from ._cancel_deep_write_task_response_body import CancelDeepWriteTaskResponseBodyData
|
|
706
708
|
from ._clear_intervenes_response_body import ClearIntervenesResponseBodyData
|
|
709
|
+
from ._create_dataset_request import CreateDatasetRequestDatasetConfigSearchSourceConfig
|
|
707
710
|
from ._create_dataset_request import CreateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigHeaders
|
|
708
711
|
from ._create_dataset_request import CreateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigParams
|
|
709
712
|
from ._create_dataset_request import CreateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfig
|
|
@@ -759,6 +762,7 @@ from ._get_custom_topic_selection_perspective_analysis_task_response_body import
|
|
|
759
762
|
from ._get_custom_topic_selection_perspective_analysis_task_response_body import GetCustomTopicSelectionPerspectiveAnalysisTaskResponseBodyData
|
|
760
763
|
from ._get_data_source_order_config_response_body import GetDataSourceOrderConfigResponseBodyDataUserConfigDataSourceList
|
|
761
764
|
from ._get_data_source_order_config_response_body import GetDataSourceOrderConfigResponseBodyData
|
|
765
|
+
from ._get_dataset_response_body import GetDatasetResponseBodyDataDatasetConfigSearchSourceConfig
|
|
762
766
|
from ._get_dataset_response_body import GetDatasetResponseBodyDataDatasetConfigSearchSourceConfigsSearchSourceRequestConfigHeaders
|
|
763
767
|
from ._get_dataset_response_body import GetDatasetResponseBodyDataDatasetConfigSearchSourceConfigsSearchSourceRequestConfigParams
|
|
764
768
|
from ._get_dataset_response_body import GetDatasetResponseBodyDataDatasetConfigSearchSourceConfigsSearchSourceRequestConfig
|
|
@@ -771,6 +775,7 @@ from ._get_dataset_response_body import GetDatasetResponseBodyDataDatasetConfig
|
|
|
771
775
|
from ._get_dataset_response_body import GetDatasetResponseBodyDataDocumentHandleConfig
|
|
772
776
|
from ._get_dataset_response_body import GetDatasetResponseBodyData
|
|
773
777
|
from ._get_dataset_document_response_body import GetDatasetDocumentResponseBodyDataMetadataAsrSentences
|
|
778
|
+
from ._get_dataset_document_response_body import GetDatasetDocumentResponseBodyDataMetadataKeyValues
|
|
774
779
|
from ._get_dataset_document_response_body import GetDatasetDocumentResponseBodyDataMetadataVideoShots
|
|
775
780
|
from ._get_dataset_document_response_body import GetDatasetDocumentResponseBodyDataMetadata
|
|
776
781
|
from ._get_dataset_document_response_body import GetDatasetDocumentResponseBodyData
|
|
@@ -1219,6 +1224,7 @@ from ._run_writing_v2response_body import RunWritingV2ResponseBodyPayloadOutput
|
|
|
1219
1224
|
from ._run_writing_v2response_body import RunWritingV2ResponseBodyPayloadUsage
|
|
1220
1225
|
from ._run_writing_v2response_body import RunWritingV2ResponseBodyPayload
|
|
1221
1226
|
from ._save_data_source_order_config_request import SaveDataSourceOrderConfigRequestUserConfigDataSourceList
|
|
1227
|
+
from ._search_dataset_documents_response_body import SearchDatasetDocumentsResponseBodyDataDocumentsChunkInfos
|
|
1222
1228
|
from ._search_dataset_documents_response_body import SearchDatasetDocumentsResponseBodyDataDocuments
|
|
1223
1229
|
from ._search_dataset_documents_response_body import SearchDatasetDocumentsResponseBodyData
|
|
1224
1230
|
from ._search_news_response_body import SearchNewsResponseBodyData
|
|
@@ -1268,6 +1274,7 @@ from ._submit_smart_clip_task_response_body import SubmitSmartClipTaskResponseBo
|
|
|
1268
1274
|
from ._submit_topic_selection_perspective_analysis_task_request import SubmitTopicSelectionPerspectiveAnalysisTaskRequestDocumentsComments
|
|
1269
1275
|
from ._submit_topic_selection_perspective_analysis_task_request import SubmitTopicSelectionPerspectiveAnalysisTaskRequestDocuments
|
|
1270
1276
|
from ._submit_topic_selection_perspective_analysis_task_response_body import SubmitTopicSelectionPerspectiveAnalysisTaskResponseBodyData
|
|
1277
|
+
from ._update_dataset_request import UpdateDatasetRequestDatasetConfigSearchSourceConfig
|
|
1271
1278
|
from ._update_dataset_request import UpdateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigHeaders
|
|
1272
1279
|
from ._update_dataset_request import UpdateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigParams
|
|
1273
1280
|
from ._update_dataset_request import UpdateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfig
|
|
@@ -1868,6 +1875,7 @@ __all__ = [
|
|
|
1868
1875
|
SaveStyleLearningResultResponseBody,
|
|
1869
1876
|
SaveStyleLearningResultResponse,
|
|
1870
1877
|
SearchDatasetDocumentsRequest,
|
|
1878
|
+
SearchDatasetDocumentsShrinkRequest,
|
|
1871
1879
|
SearchDatasetDocumentsResponseBody,
|
|
1872
1880
|
SearchDatasetDocumentsResponse,
|
|
1873
1881
|
SearchNewsRequest,
|
|
@@ -1969,6 +1977,7 @@ __all__ = [
|
|
|
1969
1977
|
WritingStyleTemplateFieldStyle,
|
|
1970
1978
|
AddAuditTermsResponseBodyDataV1,
|
|
1971
1979
|
AddDatasetDocumentRequestDocumentMetadataAsrSentences,
|
|
1980
|
+
AddDatasetDocumentRequestDocumentMetadataKeyValues,
|
|
1972
1981
|
AddDatasetDocumentRequestDocumentMetadataVideoShots,
|
|
1973
1982
|
AddDatasetDocumentRequestDocumentMetadata,
|
|
1974
1983
|
AddDatasetDocumentRequestDocumentMultimodalMedias,
|
|
@@ -1992,6 +2001,7 @@ __all__ = [
|
|
|
1992
2001
|
BindPptArtifactResponseBodyData,
|
|
1993
2002
|
CancelDeepWriteTaskResponseBodyData,
|
|
1994
2003
|
ClearIntervenesResponseBodyData,
|
|
2004
|
+
CreateDatasetRequestDatasetConfigSearchSourceConfig,
|
|
1995
2005
|
CreateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigHeaders,
|
|
1996
2006
|
CreateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigParams,
|
|
1997
2007
|
CreateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfig,
|
|
@@ -2047,6 +2057,7 @@ __all__ = [
|
|
|
2047
2057
|
GetCustomTopicSelectionPerspectiveAnalysisTaskResponseBodyData,
|
|
2048
2058
|
GetDataSourceOrderConfigResponseBodyDataUserConfigDataSourceList,
|
|
2049
2059
|
GetDataSourceOrderConfigResponseBodyData,
|
|
2060
|
+
GetDatasetResponseBodyDataDatasetConfigSearchSourceConfig,
|
|
2050
2061
|
GetDatasetResponseBodyDataDatasetConfigSearchSourceConfigsSearchSourceRequestConfigHeaders,
|
|
2051
2062
|
GetDatasetResponseBodyDataDatasetConfigSearchSourceConfigsSearchSourceRequestConfigParams,
|
|
2052
2063
|
GetDatasetResponseBodyDataDatasetConfigSearchSourceConfigsSearchSourceRequestConfig,
|
|
@@ -2059,6 +2070,7 @@ __all__ = [
|
|
|
2059
2070
|
GetDatasetResponseBodyDataDocumentHandleConfig,
|
|
2060
2071
|
GetDatasetResponseBodyData,
|
|
2061
2072
|
GetDatasetDocumentResponseBodyDataMetadataAsrSentences,
|
|
2073
|
+
GetDatasetDocumentResponseBodyDataMetadataKeyValues,
|
|
2062
2074
|
GetDatasetDocumentResponseBodyDataMetadataVideoShots,
|
|
2063
2075
|
GetDatasetDocumentResponseBodyDataMetadata,
|
|
2064
2076
|
GetDatasetDocumentResponseBodyData,
|
|
@@ -2507,6 +2519,7 @@ __all__ = [
|
|
|
2507
2519
|
RunWritingV2ResponseBodyPayloadUsage,
|
|
2508
2520
|
RunWritingV2ResponseBodyPayload,
|
|
2509
2521
|
SaveDataSourceOrderConfigRequestUserConfigDataSourceList,
|
|
2522
|
+
SearchDatasetDocumentsResponseBodyDataDocumentsChunkInfos,
|
|
2510
2523
|
SearchDatasetDocumentsResponseBodyDataDocuments,
|
|
2511
2524
|
SearchDatasetDocumentsResponseBodyData,
|
|
2512
2525
|
SearchNewsResponseBodyData,
|
|
@@ -2556,6 +2569,7 @@ __all__ = [
|
|
|
2556
2569
|
SubmitTopicSelectionPerspectiveAnalysisTaskRequestDocumentsComments,
|
|
2557
2570
|
SubmitTopicSelectionPerspectiveAnalysisTaskRequestDocuments,
|
|
2558
2571
|
SubmitTopicSelectionPerspectiveAnalysisTaskResponseBodyData,
|
|
2572
|
+
UpdateDatasetRequestDatasetConfigSearchSourceConfig,
|
|
2559
2573
|
UpdateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigHeaders,
|
|
2560
2574
|
UpdateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfigParams,
|
|
2561
2575
|
UpdateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestConfig,
|
|
@@ -65,6 +65,7 @@ class AddDatasetDocumentRequest(DaraModel):
|
|
|
65
65
|
class AddDatasetDocumentRequestDocument(DaraModel):
|
|
66
66
|
def __init__(
|
|
67
67
|
self,
|
|
68
|
+
category_uuid: str = None,
|
|
68
69
|
content: str = None,
|
|
69
70
|
disable_handle_multimodal_media: bool = None,
|
|
70
71
|
doc_id: str = None,
|
|
@@ -79,9 +80,11 @@ class AddDatasetDocumentRequestDocument(DaraModel):
|
|
|
79
80
|
pub_time: str = None,
|
|
80
81
|
source_from: str = None,
|
|
81
82
|
summary: str = None,
|
|
83
|
+
tags: List[str] = None,
|
|
82
84
|
title: str = None,
|
|
83
85
|
url: str = None,
|
|
84
86
|
):
|
|
87
|
+
self.category_uuid = category_uuid
|
|
85
88
|
self.content = content
|
|
86
89
|
self.disable_handle_multimodal_media = disable_handle_multimodal_media
|
|
87
90
|
self.doc_id = doc_id
|
|
@@ -96,6 +99,7 @@ class AddDatasetDocumentRequestDocument(DaraModel):
|
|
|
96
99
|
self.pub_time = pub_time
|
|
97
100
|
self.source_from = source_from
|
|
98
101
|
self.summary = summary
|
|
102
|
+
self.tags = tags
|
|
99
103
|
self.title = title
|
|
100
104
|
self.url = url
|
|
101
105
|
|
|
@@ -112,6 +116,9 @@ class AddDatasetDocumentRequestDocument(DaraModel):
|
|
|
112
116
|
_map = super().to_map()
|
|
113
117
|
if _map is not None:
|
|
114
118
|
result = _map
|
|
119
|
+
if self.category_uuid is not None:
|
|
120
|
+
result['CategoryUuid'] = self.category_uuid
|
|
121
|
+
|
|
115
122
|
if self.content is not None:
|
|
116
123
|
result['Content'] = self.content
|
|
117
124
|
|
|
@@ -156,6 +163,9 @@ class AddDatasetDocumentRequestDocument(DaraModel):
|
|
|
156
163
|
if self.summary is not None:
|
|
157
164
|
result['Summary'] = self.summary
|
|
158
165
|
|
|
166
|
+
if self.tags is not None:
|
|
167
|
+
result['Tags'] = self.tags
|
|
168
|
+
|
|
159
169
|
if self.title is not None:
|
|
160
170
|
result['Title'] = self.title
|
|
161
171
|
|
|
@@ -166,6 +176,9 @@ class AddDatasetDocumentRequestDocument(DaraModel):
|
|
|
166
176
|
|
|
167
177
|
def from_map(self, m: dict = None):
|
|
168
178
|
m = m or dict()
|
|
179
|
+
if m.get('CategoryUuid') is not None:
|
|
180
|
+
self.category_uuid = m.get('CategoryUuid')
|
|
181
|
+
|
|
169
182
|
if m.get('Content') is not None:
|
|
170
183
|
self.content = m.get('Content')
|
|
171
184
|
|
|
@@ -212,6 +225,9 @@ class AddDatasetDocumentRequestDocument(DaraModel):
|
|
|
212
225
|
if m.get('Summary') is not None:
|
|
213
226
|
self.summary = m.get('Summary')
|
|
214
227
|
|
|
228
|
+
if m.get('Tags') is not None:
|
|
229
|
+
self.tags = m.get('Tags')
|
|
230
|
+
|
|
215
231
|
if m.get('Title') is not None:
|
|
216
232
|
self.title = m.get('Title')
|
|
217
233
|
|
|
@@ -267,10 +283,12 @@ class AddDatasetDocumentRequestDocumentMetadata(DaraModel):
|
|
|
267
283
|
def __init__(
|
|
268
284
|
self,
|
|
269
285
|
asr_sentences: List[main_models.AddDatasetDocumentRequestDocumentMetadataAsrSentences] = None,
|
|
286
|
+
key_values: List[main_models.AddDatasetDocumentRequestDocumentMetadataKeyValues] = None,
|
|
270
287
|
text: str = None,
|
|
271
288
|
video_shots: List[main_models.AddDatasetDocumentRequestDocumentMetadataVideoShots] = None,
|
|
272
289
|
):
|
|
273
290
|
self.asr_sentences = asr_sentences
|
|
291
|
+
self.key_values = key_values
|
|
274
292
|
self.text = text
|
|
275
293
|
self.video_shots = video_shots
|
|
276
294
|
|
|
@@ -279,6 +297,10 @@ class AddDatasetDocumentRequestDocumentMetadata(DaraModel):
|
|
|
279
297
|
for v1 in self.asr_sentences:
|
|
280
298
|
if v1:
|
|
281
299
|
v1.validate()
|
|
300
|
+
if self.key_values:
|
|
301
|
+
for v1 in self.key_values:
|
|
302
|
+
if v1:
|
|
303
|
+
v1.validate()
|
|
282
304
|
if self.video_shots:
|
|
283
305
|
for v1 in self.video_shots:
|
|
284
306
|
if v1:
|
|
@@ -294,6 +316,11 @@ class AddDatasetDocumentRequestDocumentMetadata(DaraModel):
|
|
|
294
316
|
for k1 in self.asr_sentences:
|
|
295
317
|
result['AsrSentences'].append(k1.to_map() if k1 else None)
|
|
296
318
|
|
|
319
|
+
result['KeyValues'] = []
|
|
320
|
+
if self.key_values is not None:
|
|
321
|
+
for k1 in self.key_values:
|
|
322
|
+
result['KeyValues'].append(k1.to_map() if k1 else None)
|
|
323
|
+
|
|
297
324
|
if self.text is not None:
|
|
298
325
|
result['Text'] = self.text
|
|
299
326
|
|
|
@@ -312,6 +339,12 @@ class AddDatasetDocumentRequestDocumentMetadata(DaraModel):
|
|
|
312
339
|
temp_model = main_models.AddDatasetDocumentRequestDocumentMetadataAsrSentences()
|
|
313
340
|
self.asr_sentences.append(temp_model.from_map(k1))
|
|
314
341
|
|
|
342
|
+
self.key_values = []
|
|
343
|
+
if m.get('KeyValues') is not None:
|
|
344
|
+
for k1 in m.get('KeyValues'):
|
|
345
|
+
temp_model = main_models.AddDatasetDocumentRequestDocumentMetadataKeyValues()
|
|
346
|
+
self.key_values.append(temp_model.from_map(k1))
|
|
347
|
+
|
|
315
348
|
if m.get('Text') is not None:
|
|
316
349
|
self.text = m.get('Text')
|
|
317
350
|
|
|
@@ -366,6 +399,41 @@ class AddDatasetDocumentRequestDocumentMetadataVideoShots(DaraModel):
|
|
|
366
399
|
|
|
367
400
|
return self
|
|
368
401
|
|
|
402
|
+
class AddDatasetDocumentRequestDocumentMetadataKeyValues(DaraModel):
|
|
403
|
+
def __init__(
|
|
404
|
+
self,
|
|
405
|
+
key: str = None,
|
|
406
|
+
value: str = None,
|
|
407
|
+
):
|
|
408
|
+
self.key = key
|
|
409
|
+
self.value = value
|
|
410
|
+
|
|
411
|
+
def validate(self):
|
|
412
|
+
pass
|
|
413
|
+
|
|
414
|
+
def to_map(self):
|
|
415
|
+
result = dict()
|
|
416
|
+
_map = super().to_map()
|
|
417
|
+
if _map is not None:
|
|
418
|
+
result = _map
|
|
419
|
+
if self.key is not None:
|
|
420
|
+
result['Key'] = self.key
|
|
421
|
+
|
|
422
|
+
if self.value is not None:
|
|
423
|
+
result['Value'] = self.value
|
|
424
|
+
|
|
425
|
+
return result
|
|
426
|
+
|
|
427
|
+
def from_map(self, m: dict = None):
|
|
428
|
+
m = m or dict()
|
|
429
|
+
if m.get('Key') is not None:
|
|
430
|
+
self.key = m.get('Key')
|
|
431
|
+
|
|
432
|
+
if m.get('Value') is not None:
|
|
433
|
+
self.value = m.get('Value')
|
|
434
|
+
|
|
435
|
+
return self
|
|
436
|
+
|
|
369
437
|
class AddDatasetDocumentRequestDocumentMetadataAsrSentences(DaraModel):
|
|
370
438
|
def __init__(
|
|
371
439
|
self,
|
|
@@ -127,11 +127,15 @@ class CreateDatasetRequestDocumentHandleConfig(DaraModel):
|
|
|
127
127
|
class CreateDatasetRequestDatasetConfig(DaraModel):
|
|
128
128
|
def __init__(
|
|
129
129
|
self,
|
|
130
|
+
search_source_config: main_models.CreateDatasetRequestDatasetConfigSearchSourceConfig = None,
|
|
130
131
|
search_source_configs: List[main_models.CreateDatasetRequestDatasetConfigSearchSourceConfigs] = None,
|
|
131
132
|
):
|
|
133
|
+
self.search_source_config = search_source_config
|
|
132
134
|
self.search_source_configs = search_source_configs
|
|
133
135
|
|
|
134
136
|
def validate(self):
|
|
137
|
+
if self.search_source_config:
|
|
138
|
+
self.search_source_config.validate()
|
|
135
139
|
if self.search_source_configs:
|
|
136
140
|
for v1 in self.search_source_configs:
|
|
137
141
|
if v1:
|
|
@@ -142,6 +146,9 @@ class CreateDatasetRequestDatasetConfig(DaraModel):
|
|
|
142
146
|
_map = super().to_map()
|
|
143
147
|
if _map is not None:
|
|
144
148
|
result = _map
|
|
149
|
+
if self.search_source_config is not None:
|
|
150
|
+
result['SearchSourceConfig'] = self.search_source_config.to_map()
|
|
151
|
+
|
|
145
152
|
result['SearchSourceConfigs'] = []
|
|
146
153
|
if self.search_source_configs is not None:
|
|
147
154
|
for k1 in self.search_source_configs:
|
|
@@ -151,6 +158,10 @@ class CreateDatasetRequestDatasetConfig(DaraModel):
|
|
|
151
158
|
|
|
152
159
|
def from_map(self, m: dict = None):
|
|
153
160
|
m = m or dict()
|
|
161
|
+
if m.get('SearchSourceConfig') is not None:
|
|
162
|
+
temp_model = main_models.CreateDatasetRequestDatasetConfigSearchSourceConfig()
|
|
163
|
+
self.search_source_config = temp_model.from_map(m.get('SearchSourceConfig'))
|
|
164
|
+
|
|
154
165
|
self.search_source_configs = []
|
|
155
166
|
if m.get('SearchSourceConfigs') is not None:
|
|
156
167
|
for k1 in m.get('SearchSourceConfigs'):
|
|
@@ -613,3 +624,54 @@ class CreateDatasetRequestDatasetConfigSearchSourceConfigsSearchSourceRequestCon
|
|
|
613
624
|
|
|
614
625
|
return self
|
|
615
626
|
|
|
627
|
+
class CreateDatasetRequestDatasetConfigSearchSourceConfig(DaraModel):
|
|
628
|
+
def __init__(
|
|
629
|
+
self,
|
|
630
|
+
metadata_key_value_generate_enable: bool = None,
|
|
631
|
+
metadata_key_value_search_enable: bool = None,
|
|
632
|
+
tag_generate_enable: bool = None,
|
|
633
|
+
tag_search_enable: bool = None,
|
|
634
|
+
):
|
|
635
|
+
self.metadata_key_value_generate_enable = metadata_key_value_generate_enable
|
|
636
|
+
self.metadata_key_value_search_enable = metadata_key_value_search_enable
|
|
637
|
+
self.tag_generate_enable = tag_generate_enable
|
|
638
|
+
self.tag_search_enable = tag_search_enable
|
|
639
|
+
|
|
640
|
+
def validate(self):
|
|
641
|
+
pass
|
|
642
|
+
|
|
643
|
+
def to_map(self):
|
|
644
|
+
result = dict()
|
|
645
|
+
_map = super().to_map()
|
|
646
|
+
if _map is not None:
|
|
647
|
+
result = _map
|
|
648
|
+
if self.metadata_key_value_generate_enable is not None:
|
|
649
|
+
result['MetadataKeyValueGenerateEnable'] = self.metadata_key_value_generate_enable
|
|
650
|
+
|
|
651
|
+
if self.metadata_key_value_search_enable is not None:
|
|
652
|
+
result['MetadataKeyValueSearchEnable'] = self.metadata_key_value_search_enable
|
|
653
|
+
|
|
654
|
+
if self.tag_generate_enable is not None:
|
|
655
|
+
result['TagGenerateEnable'] = self.tag_generate_enable
|
|
656
|
+
|
|
657
|
+
if self.tag_search_enable is not None:
|
|
658
|
+
result['TagSearchEnable'] = self.tag_search_enable
|
|
659
|
+
|
|
660
|
+
return result
|
|
661
|
+
|
|
662
|
+
def from_map(self, m: dict = None):
|
|
663
|
+
m = m or dict()
|
|
664
|
+
if m.get('MetadataKeyValueGenerateEnable') is not None:
|
|
665
|
+
self.metadata_key_value_generate_enable = m.get('MetadataKeyValueGenerateEnable')
|
|
666
|
+
|
|
667
|
+
if m.get('MetadataKeyValueSearchEnable') is not None:
|
|
668
|
+
self.metadata_key_value_search_enable = m.get('MetadataKeyValueSearchEnable')
|
|
669
|
+
|
|
670
|
+
if m.get('TagGenerateEnable') is not None:
|
|
671
|
+
self.tag_generate_enable = m.get('TagGenerateEnable')
|
|
672
|
+
|
|
673
|
+
if m.get('TagSearchEnable') is not None:
|
|
674
|
+
self.tag_search_enable = m.get('TagSearchEnable')
|
|
675
|
+
|
|
676
|
+
return self
|
|
677
|
+
|