@@ -5420,10 +5420,18 @@ public RunBookIntroductionResponse runBookIntroductionWithOptions(RunBookIntrodu
54205420 body .put ("DocId" , request .docId );
54215421 }
54225422
5423+ if (!com .aliyun .teautil .Common .isUnset (request .keyPointPrompt )) {
5424+ body .put ("KeyPointPrompt" , request .keyPointPrompt );
5425+ }
5426+
54235427 if (!com .aliyun .teautil .Common .isUnset (request .sessionId )) {
54245428 body .put ("SessionId" , request .sessionId );
54255429 }
54265430
5431+ if (!com .aliyun .teautil .Common .isUnset (request .summaryPrompt )) {
5432+ body .put ("SummaryPrompt" , request .summaryPrompt );
5433+ }
5434+
54275435 if (!com .aliyun .teautil .Common .isUnset (request .workspaceId )) {
54285436 body .put ("WorkspaceId" , request .workspaceId );
54295437 }
@@ -5568,6 +5576,10 @@ public RunCommentGenerationResponse runCommentGenerationWithOptions(RunCommentGe
55685576 body .put ("Sentiment" , request .sentimentShrink );
55695577 }
55705578
5579+ if (!com .aliyun .teautil .Common .isUnset (request .sessionId )) {
5580+ body .put ("SessionId" , request .sessionId );
5581+ }
5582+
55715583 if (!com .aliyun .teautil .Common .isUnset (request .sourceMaterial )) {
55725584 body .put ("SourceMaterial" , request .sourceMaterial );
55735585 }
@@ -5840,14 +5852,30 @@ public RunCustomHotTopicViewPointAnalysisResponse runCustomHotTopicViewPointAnal
58405852 public RunDocBrainmapResponse runDocBrainmapWithOptions (RunDocBrainmapRequest request , com .aliyun .teautil .models .RuntimeOptions runtime ) throws Exception {
58415853 com .aliyun .teautil .Common .validateModel (request );
58425854 java .util .Map <String , Object > body = new java .util .HashMap <>();
5855+ if (!com .aliyun .teautil .Common .isUnset (request .cleanCache )) {
5856+ body .put ("CleanCache" , request .cleanCache );
5857+ }
5858+
58435859 if (!com .aliyun .teautil .Common .isUnset (request .docId )) {
58445860 body .put ("DocId" , request .docId );
58455861 }
58465862
5863+ if (!com .aliyun .teautil .Common .isUnset (request .nodeNumber )) {
5864+ body .put ("NodeNumber" , request .nodeNumber );
5865+ }
5866+
5867+ if (!com .aliyun .teautil .Common .isUnset (request .prompt )) {
5868+ body .put ("Prompt" , request .prompt );
5869+ }
5870+
58475871 if (!com .aliyun .teautil .Common .isUnset (request .sessionId )) {
58485872 body .put ("SessionId" , request .sessionId );
58495873 }
58505874
5875+ if (!com .aliyun .teautil .Common .isUnset (request .wordNumber )) {
5876+ body .put ("WordNumber" , request .wordNumber );
5877+ }
5878+
58515879 if (!com .aliyun .teautil .Common .isUnset (request .workspaceId )) {
58525880 body .put ("WorkspaceId" , request .workspaceId );
58535881 }
@@ -5896,20 +5924,38 @@ public RunDocBrainmapResponse runDocBrainmap(RunDocBrainmapRequest request) thro
58965924 */
58975925 public RunDocIntroductionResponse runDocIntroductionWithOptions (RunDocIntroductionRequest request , com .aliyun .teautil .models .RuntimeOptions runtime ) throws Exception {
58985926 com .aliyun .teautil .Common .validateModel (request );
5927+ java .util .Map <String , Object > query = new java .util .HashMap <>();
5928+ if (!com .aliyun .teautil .Common .isUnset (request .cleanCache )) {
5929+ query .put ("CleanCache" , request .cleanCache );
5930+ }
5931+
58995932 java .util .Map <String , Object > body = new java .util .HashMap <>();
59005933 if (!com .aliyun .teautil .Common .isUnset (request .docId )) {
59015934 body .put ("DocId" , request .docId );
59025935 }
59035936
5937+ if (!com .aliyun .teautil .Common .isUnset (request .introductionPrompt )) {
5938+ body .put ("IntroductionPrompt" , request .introductionPrompt );
5939+ }
5940+
5941+ if (!com .aliyun .teautil .Common .isUnset (request .keyPointPrompt )) {
5942+ body .put ("KeyPointPrompt" , request .keyPointPrompt );
5943+ }
5944+
59045945 if (!com .aliyun .teautil .Common .isUnset (request .sessionId )) {
59055946 body .put ("SessionId" , request .sessionId );
59065947 }
59075948
5949+ if (!com .aliyun .teautil .Common .isUnset (request .summaryPrompt )) {
5950+ body .put ("SummaryPrompt" , request .summaryPrompt );
5951+ }
5952+
59085953 if (!com .aliyun .teautil .Common .isUnset (request .workspaceId )) {
59095954 body .put ("WorkspaceId" , request .workspaceId );
59105955 }
59115956
59125957 com .aliyun .teaopenapi .models .OpenApiRequest req = com .aliyun .teaopenapi .models .OpenApiRequest .build (TeaConverter .buildMap (
5958+ new TeaPair ("query" , com .aliyun .openapiutil .Client .query (query )),
59135959 new TeaPair ("body" , com .aliyun .openapiutil .Client .parseToMap (body ))
59145960 ));
59155961 com .aliyun .teaopenapi .models .Params params = com .aliyun .teaopenapi .models .Params .build (TeaConverter .buildMap (
@@ -6102,6 +6148,10 @@ public RunDocSmartCardResponse runDocSmartCard(RunDocSmartCardRequest request) t
61026148 public RunDocSummaryResponse runDocSummaryWithOptions (RunDocSummaryRequest request , com .aliyun .teautil .models .RuntimeOptions runtime ) throws Exception {
61036149 com .aliyun .teautil .Common .validateModel (request );
61046150 java .util .Map <String , Object > body = new java .util .HashMap <>();
6151+ if (!com .aliyun .teautil .Common .isUnset (request .cleanCache )) {
6152+ body .put ("CleanCache" , request .cleanCache );
6153+ }
6154+
61056155 if (!com .aliyun .teautil .Common .isUnset (request .docId )) {
61066156 body .put ("DocId" , request .docId );
61076157 }
@@ -6167,6 +6217,10 @@ public RunDocSummaryResponse runDocSummary(RunDocSummaryRequest request) throws
61676217 public RunDocTranslationResponse runDocTranslationWithOptions (RunDocTranslationRequest request , com .aliyun .teautil .models .RuntimeOptions runtime ) throws Exception {
61686218 com .aliyun .teautil .Common .validateModel (request );
61696219 java .util .Map <String , Object > body = new java .util .HashMap <>();
6220+ if (!com .aliyun .teautil .Common .isUnset (request .cleanCache )) {
6221+ body .put ("CleanCache" , request .cleanCache );
6222+ }
6223+
61706224 if (!com .aliyun .teautil .Common .isUnset (request .docId )) {
61716225 body .put ("DocId" , request .docId );
61726226 }
@@ -6221,6 +6275,83 @@ public RunDocTranslationResponse runDocTranslation(RunDocTranslationRequest requ
62216275 return this .runDocTranslationWithOptions (request , runtime );
62226276 }
62236277
6278+ /**
6279+ * <b>summary</b> :
6280+ * <p>文档改写</p>
6281+ *
6282+ * @param request RunDocWashingRequest
6283+ * @param runtime runtime options for this request RuntimeOptions
6284+ * @return RunDocWashingResponse
6285+ */
6286+ public RunDocWashingResponse runDocWashingWithOptions (RunDocWashingRequest request , com .aliyun .teautil .models .RuntimeOptions runtime ) throws Exception {
6287+ com .aliyun .teautil .Common .validateModel (request );
6288+ java .util .Map <String , Object > body = new java .util .HashMap <>();
6289+ if (!com .aliyun .teautil .Common .isUnset (request .prompt )) {
6290+ body .put ("Prompt" , request .prompt );
6291+ }
6292+
6293+ if (!com .aliyun .teautil .Common .isUnset (request .referenceContent )) {
6294+ body .put ("ReferenceContent" , request .referenceContent );
6295+ }
6296+
6297+ if (!com .aliyun .teautil .Common .isUnset (request .sessionId )) {
6298+ body .put ("SessionId" , request .sessionId );
6299+ }
6300+
6301+ if (!com .aliyun .teautil .Common .isUnset (request .topic )) {
6302+ body .put ("Topic" , request .topic );
6303+ }
6304+
6305+ if (!com .aliyun .teautil .Common .isUnset (request .wordNumber )) {
6306+ body .put ("WordNumber" , request .wordNumber );
6307+ }
6308+
6309+ if (!com .aliyun .teautil .Common .isUnset (request .workspaceId )) {
6310+ body .put ("WorkspaceId" , request .workspaceId );
6311+ }
6312+
6313+ if (!com .aliyun .teautil .Common .isUnset (request .writingTypeName )) {
6314+ body .put ("WritingTypeName" , request .writingTypeName );
6315+ }
6316+
6317+ if (!com .aliyun .teautil .Common .isUnset (request .writingTypeRefDoc )) {
6318+ body .put ("WritingTypeRefDoc" , request .writingTypeRefDoc );
6319+ }
6320+
6321+ com .aliyun .teaopenapi .models .OpenApiRequest req = com .aliyun .teaopenapi .models .OpenApiRequest .build (TeaConverter .buildMap (
6322+ new TeaPair ("body" , com .aliyun .openapiutil .Client .parseToMap (body ))
6323+ ));
6324+ com .aliyun .teaopenapi .models .Params params = com .aliyun .teaopenapi .models .Params .build (TeaConverter .buildMap (
6325+ new TeaPair ("action" , "RunDocWashing" ),
6326+ new TeaPair ("version" , "2023-08-01" ),
6327+ new TeaPair ("protocol" , "HTTPS" ),
6328+ new TeaPair ("pathname" , "/" ),
6329+ new TeaPair ("method" , "POST" ),
6330+ new TeaPair ("authType" , "AK" ),
6331+ new TeaPair ("style" , "RPC" ),
6332+ new TeaPair ("reqBodyType" , "formData" ),
6333+ new TeaPair ("bodyType" , "json" )
6334+ ));
6335+ if (com .aliyun .teautil .Common .isUnset (_signatureVersion ) || !com .aliyun .teautil .Common .equalString (_signatureVersion , "v4" )) {
6336+ return TeaModel .toModel (this .callApi (params , req , runtime ), new RunDocWashingResponse ());
6337+ } else {
6338+ return TeaModel .toModel (this .execute (params , req , runtime ), new RunDocWashingResponse ());
6339+ }
6340+
6341+ }
6342+
6343+ /**
6344+ * <b>summary</b> :
6345+ * <p>文档改写</p>
6346+ *
6347+ * @param request RunDocWashingRequest
6348+ * @return RunDocWashingResponse
6349+ */
6350+ public RunDocWashingResponse runDocWashing (RunDocWashingRequest request ) throws Exception {
6351+ com .aliyun .teautil .models .RuntimeOptions runtime = new com .aliyun .teautil .models .RuntimeOptions ();
6352+ return this .runDocWashingWithOptions (request , runtime );
6353+ }
6354+
62246355 /**
62256356 * <b>summary</b> :
62266357 * <p>内容扩写</p>
0 commit comments