@alicloud/dms20250414 4.2.0 → 4.2.1
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 +8 -8
- package/dist/client.js +8 -8
- package/dist/models/SendChatMessageRequest.d.ts +83 -67
- package/dist/models/SendChatMessageRequest.js +4 -0
- package/dist/models/SendChatMessageRequest.js.map +1 -1
- package/dist/models/SendChatMessageShrinkRequest.d.ts +20 -20
- package/package.json +1 -1
- package/src/client.ts +8 -8
- package/src/models/SendChatMessageRequest.ts +87 -67
- package/src/models/SendChatMessageShrinkRequest.ts +20 -20
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* **[Optimized]** This field is now automatically
|
|
8
|
+
* **[Optimized]** This field is now automatically retrieved in the background. You do not need to specify it.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* agent_***
|
|
@@ -13,7 +13,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
13
13
|
agentId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* **[Optimized]** This field is now automatically
|
|
16
|
+
* **[Optimized]** This field is now automatically retrieved in the background. You do not need to specify it when calling the API.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* cn-hangzhou
|
|
@@ -21,7 +21,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
21
21
|
DMSUnit?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The data source information. This parameter can be left empty.
|
|
24
|
+
* The data source information. This parameter can be left empty. You can specify only one data source for this parameter. Use the DataSources parameter instead.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* null
|
|
@@ -34,7 +34,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
34
34
|
dataSourcesShrink?: string;
|
|
35
35
|
/**
|
|
36
36
|
* @remarks
|
|
37
|
-
* The
|
|
37
|
+
* The content of the message sent to the agent.
|
|
38
38
|
*
|
|
39
39
|
* This parameter is required.
|
|
40
40
|
*
|
|
@@ -44,15 +44,15 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
44
44
|
message?: string;
|
|
45
45
|
/**
|
|
46
46
|
* @remarks
|
|
47
|
-
* The message type. Default value: `
|
|
47
|
+
* The message type. Default value: `primary`.
|
|
48
48
|
*
|
|
49
|
-
* -
|
|
49
|
+
* - In normal interactions with the agent, the message type is `primary`.
|
|
50
50
|
*
|
|
51
|
-
* - When the message is a response to
|
|
51
|
+
* - When the message is a response to a human-in-the-loop question from the agent, the type must be `additional`.
|
|
52
52
|
*
|
|
53
|
-
* - When the message is intended to trigger report generation,
|
|
53
|
+
* - When the message is intended to trigger report generation, the type must be `report`.
|
|
54
54
|
*
|
|
55
|
-
* - When the message is intended to cancel the current session,
|
|
55
|
+
* - When the message is intended to cancel the current session, the type must be `cancel`.
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
58
|
* primary
|
|
@@ -60,7 +60,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
60
60
|
messageType?: string;
|
|
61
61
|
/**
|
|
62
62
|
* @remarks
|
|
63
|
-
* The parent session
|
|
63
|
+
* The ID of the parent session.
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* 20qrliuoo7p2vlsfg*****
|
|
@@ -68,15 +68,15 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
68
68
|
parentSessionId?: string;
|
|
69
69
|
/**
|
|
70
70
|
* @remarks
|
|
71
|
-
*
|
|
71
|
+
* Required when the message type is `additional`. Specifies the specific question asked by the agent to the user through human-in-the-loop.
|
|
72
72
|
*
|
|
73
73
|
* @example
|
|
74
|
-
* Provide the criteria for
|
|
74
|
+
* Provide the calculation criteria for GMV
|
|
75
75
|
*/
|
|
76
76
|
question?: string;
|
|
77
77
|
/**
|
|
78
78
|
* @remarks
|
|
79
|
-
* The quoted content. This is typically used
|
|
79
|
+
* The quoted content. This is typically used when interacting with the agent.
|
|
80
80
|
*
|
|
81
81
|
* @example
|
|
82
82
|
* {"version":"v0"}
|
|
@@ -86,9 +86,9 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
86
86
|
* @remarks
|
|
87
87
|
* **Important**
|
|
88
88
|
*
|
|
89
|
-
* When this message is a reply to an
|
|
89
|
+
* When this message is a reply to an agent message, such as an agent asking for clarification through ASK_HUMAN, `reply_to` must exactly match the checkpoint sequence number carried by that agent message. If this message is not a targeted reply, such as requesting the agent to perform further in-depth analysis after the initial analysis is complete, you can leave `reply_to` empty or set it to "0".
|
|
90
90
|
*
|
|
91
|
-
* This field affects how the
|
|
91
|
+
* This field affects how the agent decides to process the message. Passing an incorrect value may lead to suboptimal analysis results.
|
|
92
92
|
*
|
|
93
93
|
* @example
|
|
94
94
|
* 0
|
|
@@ -96,7 +96,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
96
96
|
replyTo?: string;
|
|
97
97
|
/**
|
|
98
98
|
* @remarks
|
|
99
|
-
* The special
|
|
99
|
+
* The special configurations for the current session. For the same session, only the configurations specified in the first SendMessage call take effect.
|
|
100
100
|
*
|
|
101
101
|
* **if can be null:**
|
|
102
102
|
* true
|
|
@@ -104,10 +104,10 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
104
104
|
sessionConfigShrink?: string;
|
|
105
105
|
/**
|
|
106
106
|
* @remarks
|
|
107
|
-
* The session ID. This
|
|
108
|
-
* - You can start a session without specifying this field. The response
|
|
107
|
+
* The session ID. This optional field is used for multi-turn sessions.
|
|
108
|
+
* - You can start a session without specifying this field. The response will include the session ID for the current session.
|
|
109
109
|
* - You can also manually create a session ID by calling the CreateDataAgentSession operation and include the ID when initiating a session.
|
|
110
|
-
* -
|
|
110
|
+
* - If you need multi-turn conversations, such as follow-up questions or confirming execution plans, specify the session ID returned by the previous SendChatMessage operation in this operation.
|
|
111
111
|
*
|
|
112
112
|
* @example
|
|
113
113
|
* sess_***
|
|
@@ -120,7 +120,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
120
120
|
taskConfigShrink?: string;
|
|
121
121
|
/**
|
|
122
122
|
* @remarks
|
|
123
|
-
* The OSS bucket of the user. If this parameter is
|
|
123
|
+
* The Object Storage Service (OSS) bucket of the user. If this parameter is left empty, the analysis process is securely stored in the built-in storage.
|
|
124
124
|
*
|
|
125
125
|
* @example
|
|
126
126
|
* my-bucket
|