@alicloud/dataworks-public20240518 9.8.0 → 9.9.0
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.
- package/dist/client.d.ts +31 -10
- package/dist/client.js +66 -10
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAgentSessionRequest.d.ts +8 -8
- package/dist/models/ReplyAgentSessionRequest.d.ts +119 -0
- package/dist/models/ReplyAgentSessionRequest.js +117 -0
- package/dist/models/ReplyAgentSessionRequest.js.map +1 -0
- package/dist/models/ReplyAgentSessionResponse.d.ts +19 -0
- package/dist/models/ReplyAgentSessionResponse.js +69 -0
- package/dist/models/ReplyAgentSessionResponse.js.map +1 -0
- package/dist/models/ReplyAgentSessionResponseBody.d.ts +136 -0
- package/dist/models/ReplyAgentSessionResponseBody.js +140 -0
- package/dist/models/ReplyAgentSessionResponseBody.js.map +1 -0
- package/dist/models/ReplyAgentSessionShrinkRequest.d.ts +38 -0
- package/dist/models/ReplyAgentSessionShrinkRequest.js +62 -0
- package/dist/models/ReplyAgentSessionShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +9 -0
- package/dist/models/model.js +49 -31
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +72 -10
- package/src/models/CreateAgentSessionRequest.ts +8 -8
- package/src/models/ReplyAgentSessionRequest.ts +171 -0
- package/src/models/ReplyAgentSessionResponse.ts +40 -0
- package/src/models/ReplyAgentSessionResponseBody.ts +204 -0
- package/src/models/ReplyAgentSessionShrinkRequest.ts +55 -0
- package/src/models/model.ts +9 -0
package/dist/client.d.ts
CHANGED
|
@@ -403,12 +403,12 @@ export default class Client extends OpenApi {
|
|
|
403
403
|
* Creates a new agent session and returns the session ID.
|
|
404
404
|
*
|
|
405
405
|
* @remarks
|
|
406
|
-
* ##
|
|
406
|
+
* ## Operation description
|
|
407
407
|
* - This operation creates a new agent session.
|
|
408
|
-
* - Use `_meta.agent.agentName` to specify the
|
|
409
|
-
* - dataworks_data_agent: DataWorks built-in agent — Data Agent
|
|
410
|
-
* - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI
|
|
411
|
-
* - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service
|
|
408
|
+
* - Use `_meta.agent.agentName` to specify the agent name to bind. This parameter is required.
|
|
409
|
+
* - dataworks_data_agent: DataWorks built-in agent — Data Agent. Provides intelligent data development AI capabilities that cover the entire pipeline of data integration, development, O&M, governance, and analytics.
|
|
410
|
+
* - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI. Uses natural language processing and intelligent analytics to automate the entire analysis workflow through conversational interaction, from requirement parsing, data extraction, and automatic code generation to visualization report output.
|
|
411
|
+
* - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service. A DataWorks enterprise-grade dedicated AI assistant built on open source frameworks such as OpenClaw and Hermes Agent.
|
|
412
412
|
* - Use `_meta.config.sessionSource` to pass through a session source identifier for subsequent retrieval by source.
|
|
413
413
|
* - Use `_meta.config.sessionTags[].sessionTagCode` to pass in session tags.
|
|
414
414
|
*
|
|
@@ -421,12 +421,12 @@ export default class Client extends OpenApi {
|
|
|
421
421
|
* Creates a new agent session and returns the session ID.
|
|
422
422
|
*
|
|
423
423
|
* @remarks
|
|
424
|
-
* ##
|
|
424
|
+
* ## Operation description
|
|
425
425
|
* - This operation creates a new agent session.
|
|
426
|
-
* - Use `_meta.agent.agentName` to specify the
|
|
427
|
-
* - dataworks_data_agent: DataWorks built-in agent — Data Agent
|
|
428
|
-
* - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI
|
|
429
|
-
* - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service
|
|
426
|
+
* - Use `_meta.agent.agentName` to specify the agent name to bind. This parameter is required.
|
|
427
|
+
* - dataworks_data_agent: DataWorks built-in agent — Data Agent. Provides intelligent data development AI capabilities that cover the entire pipeline of data integration, development, O&M, governance, and analytics.
|
|
428
|
+
* - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI. Uses natural language processing and intelligent analytics to automate the entire analysis workflow through conversational interaction, from requirement parsing, data extraction, and automatic code generation to visualization report output.
|
|
429
|
+
* - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service. A DataWorks enterprise-grade dedicated AI assistant built on open source frameworks such as OpenClaw and Hermes Agent.
|
|
430
430
|
* - Use `_meta.config.sessionSource` to pass through a session source identifier for subsequent retrieval by source.
|
|
431
431
|
* - Use `_meta.config.sessionTags[].sessionTagCode` to pass in session tags.
|
|
432
432
|
*
|
|
@@ -7033,6 +7033,27 @@ export default class Client extends OpenApi {
|
|
|
7033
7033
|
* @returns RenameWorkflowDefinitionResponse
|
|
7034
7034
|
*/
|
|
7035
7035
|
renameWorkflowDefinition(request: $_model.RenameWorkflowDefinitionRequest): Promise<$_model.RenameWorkflowDefinitionResponse>;
|
|
7036
|
+
/**
|
|
7037
|
+
* Replies to a pending user interaction in a DataAgent session.
|
|
7038
|
+
*
|
|
7039
|
+
* @remarks
|
|
7040
|
+
* Replies to a permission_request issued by the DataAgent daemon. You can submit an answer to an ask_user_question or cancel the current interaction. The PermissionRequestId must come from the params.data.requestId field in the _qwen/notify event (params.kind=permission_request) of the original PromptAgentSession SSE. The reply only returns whether it was accepted. Subsequent execution events are still returned through the original PromptAgentSession SSE. Do not resubmit the same prompt round.
|
|
7041
|
+
*
|
|
7042
|
+
* @param tmpReq - ReplyAgentSessionRequest
|
|
7043
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
7044
|
+
* @returns ReplyAgentSessionResponse
|
|
7045
|
+
*/
|
|
7046
|
+
replyAgentSessionWithOptions(tmpReq: $_model.ReplyAgentSessionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ReplyAgentSessionResponse>;
|
|
7047
|
+
/**
|
|
7048
|
+
* Replies to a pending user interaction in a DataAgent session.
|
|
7049
|
+
*
|
|
7050
|
+
* @remarks
|
|
7051
|
+
* Replies to a permission_request issued by the DataAgent daemon. You can submit an answer to an ask_user_question or cancel the current interaction. The PermissionRequestId must come from the params.data.requestId field in the _qwen/notify event (params.kind=permission_request) of the original PromptAgentSession SSE. The reply only returns whether it was accepted. Subsequent execution events are still returned through the original PromptAgentSession SSE. Do not resubmit the same prompt round.
|
|
7052
|
+
*
|
|
7053
|
+
* @param request - ReplyAgentSessionRequest
|
|
7054
|
+
* @returns ReplyAgentSessionResponse
|
|
7055
|
+
*/
|
|
7056
|
+
replyAgentSession(request: $_model.ReplyAgentSessionRequest): Promise<$_model.ReplyAgentSessionResponse>;
|
|
7036
7057
|
/**
|
|
7037
7058
|
* Reruns multiple node instances in a batch.
|
|
7038
7059
|
*
|
package/dist/client.js
CHANGED
|
@@ -1141,12 +1141,12 @@ class Client extends openapi_core_1.default {
|
|
|
1141
1141
|
* Creates a new agent session and returns the session ID.
|
|
1142
1142
|
*
|
|
1143
1143
|
* @remarks
|
|
1144
|
-
* ##
|
|
1144
|
+
* ## Operation description
|
|
1145
1145
|
* - This operation creates a new agent session.
|
|
1146
|
-
* - Use `_meta.agent.agentName` to specify the
|
|
1147
|
-
* - dataworks_data_agent: DataWorks built-in agent — Data Agent
|
|
1148
|
-
* - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI
|
|
1149
|
-
* - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service
|
|
1146
|
+
* - Use `_meta.agent.agentName` to specify the agent name to bind. This parameter is required.
|
|
1147
|
+
* - dataworks_data_agent: DataWorks built-in agent — Data Agent. Provides intelligent data development AI capabilities that cover the entire pipeline of data integration, development, O&M, governance, and analytics.
|
|
1148
|
+
* - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI. Uses natural language processing and intelligent analytics to automate the entire analysis workflow through conversational interaction, from requirement parsing, data extraction, and automatic code generation to visualization report output.
|
|
1149
|
+
* - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service. A DataWorks enterprise-grade dedicated AI assistant built on open source frameworks such as OpenClaw and Hermes Agent.
|
|
1150
1150
|
* - Use `_meta.config.sessionSource` to pass through a session source identifier for subsequent retrieval by source.
|
|
1151
1151
|
* - Use `_meta.config.sessionTags[].sessionTagCode` to pass in session tags.
|
|
1152
1152
|
*
|
|
@@ -1191,12 +1191,12 @@ class Client extends openapi_core_1.default {
|
|
|
1191
1191
|
* Creates a new agent session and returns the session ID.
|
|
1192
1192
|
*
|
|
1193
1193
|
* @remarks
|
|
1194
|
-
* ##
|
|
1194
|
+
* ## Operation description
|
|
1195
1195
|
* - This operation creates a new agent session.
|
|
1196
|
-
* - Use `_meta.agent.agentName` to specify the
|
|
1197
|
-
* - dataworks_data_agent: DataWorks built-in agent — Data Agent
|
|
1198
|
-
* - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI
|
|
1199
|
-
* - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service
|
|
1196
|
+
* - Use `_meta.agent.agentName` to specify the agent name to bind. This parameter is required.
|
|
1197
|
+
* - dataworks_data_agent: DataWorks built-in agent — Data Agent. Provides intelligent data development AI capabilities that cover the entire pipeline of data integration, development, O&M, governance, and analytics.
|
|
1198
|
+
* - dataworks_chatbi_agent: DataWorks built-in agent — ChatBI. Uses natural language processing and intelligent analytics to automate the entire analysis workflow through conversational interaction, from requirement parsing, data extraction, and automatic code generation to visualization report output.
|
|
1199
|
+
* - dataworks_ai_assistant_agent: DataWorks built-in agent — AI Assistant Service. A DataWorks enterprise-grade dedicated AI assistant built on open source frameworks such as OpenClaw and Hermes Agent.
|
|
1200
1200
|
* - Use `_meta.config.sessionSource` to pass through a session source identifier for subsequent retrieval by source.
|
|
1201
1201
|
* - Use `_meta.config.sessionTags[].sessionTagCode` to pass in session tags.
|
|
1202
1202
|
*
|
|
@@ -17967,6 +17967,62 @@ class Client extends openapi_core_1.default {
|
|
|
17967
17967
|
let runtime = new $dara.RuntimeOptions({});
|
|
17968
17968
|
return await this.renameWorkflowDefinitionWithOptions(request, runtime);
|
|
17969
17969
|
}
|
|
17970
|
+
/**
|
|
17971
|
+
* Replies to a pending user interaction in a DataAgent session.
|
|
17972
|
+
*
|
|
17973
|
+
* @remarks
|
|
17974
|
+
* Replies to a permission_request issued by the DataAgent daemon. You can submit an answer to an ask_user_question or cancel the current interaction. The PermissionRequestId must come from the params.data.requestId field in the _qwen/notify event (params.kind=permission_request) of the original PromptAgentSession SSE. The reply only returns whether it was accepted. Subsequent execution events are still returned through the original PromptAgentSession SSE. Do not resubmit the same prompt round.
|
|
17975
|
+
*
|
|
17976
|
+
* @param tmpReq - ReplyAgentSessionRequest
|
|
17977
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17978
|
+
* @returns ReplyAgentSessionResponse
|
|
17979
|
+
*/
|
|
17980
|
+
async replyAgentSessionWithOptions(tmpReq, runtime) {
|
|
17981
|
+
tmpReq.validate();
|
|
17982
|
+
let request = new $_model.ReplyAgentSessionShrinkRequest({});
|
|
17983
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
17984
|
+
if (!$dara.isNull(tmpReq.params)) {
|
|
17985
|
+
request.paramsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.params, "Params", "json");
|
|
17986
|
+
}
|
|
17987
|
+
let body = {};
|
|
17988
|
+
if (!$dara.isNull(request.id)) {
|
|
17989
|
+
body["Id"] = request.id;
|
|
17990
|
+
}
|
|
17991
|
+
if (!$dara.isNull(request.jsonrpc)) {
|
|
17992
|
+
body["Jsonrpc"] = request.jsonrpc;
|
|
17993
|
+
}
|
|
17994
|
+
if (!$dara.isNull(request.paramsShrink)) {
|
|
17995
|
+
body["Params"] = request.paramsShrink;
|
|
17996
|
+
}
|
|
17997
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
17998
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
17999
|
+
});
|
|
18000
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
18001
|
+
action: "ReplyAgentSession",
|
|
18002
|
+
version: "2024-05-18",
|
|
18003
|
+
protocol: "HTTPS",
|
|
18004
|
+
pathname: "/",
|
|
18005
|
+
method: "POST",
|
|
18006
|
+
authType: "AK",
|
|
18007
|
+
style: "RPC",
|
|
18008
|
+
reqBodyType: "formData",
|
|
18009
|
+
bodyType: "json",
|
|
18010
|
+
});
|
|
18011
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ReplyAgentSessionResponse({}));
|
|
18012
|
+
}
|
|
18013
|
+
/**
|
|
18014
|
+
* Replies to a pending user interaction in a DataAgent session.
|
|
18015
|
+
*
|
|
18016
|
+
* @remarks
|
|
18017
|
+
* Replies to a permission_request issued by the DataAgent daemon. You can submit an answer to an ask_user_question or cancel the current interaction. The PermissionRequestId must come from the params.data.requestId field in the _qwen/notify event (params.kind=permission_request) of the original PromptAgentSession SSE. The reply only returns whether it was accepted. Subsequent execution events are still returned through the original PromptAgentSession SSE. Do not resubmit the same prompt round.
|
|
18018
|
+
*
|
|
18019
|
+
* @param request - ReplyAgentSessionRequest
|
|
18020
|
+
* @returns ReplyAgentSessionResponse
|
|
18021
|
+
*/
|
|
18022
|
+
async replyAgentSession(request) {
|
|
18023
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
18024
|
+
return await this.replyAgentSessionWithOptions(request, runtime);
|
|
18025
|
+
}
|
|
17970
18026
|
/**
|
|
17971
18027
|
* Reruns multiple node instances in a batch.
|
|
17972
18028
|
*
|