@alicloud/rdsai20250507 1.4.1 → 1.5.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 +188 -0
- package/dist/client.js +671 -0
- package/dist/client.js.map +1 -1
- package/dist/models/ChatMessagesRequest.d.ts +71 -0
- package/dist/models/ChatMessagesRequest.js +96 -0
- package/dist/models/ChatMessagesRequest.js.map +1 -0
- package/dist/models/ChatMessagesResponse.d.ts +19 -0
- package/dist/models/ChatMessagesResponse.js +69 -0
- package/dist/models/ChatMessagesResponse.js.map +1 -0
- package/dist/models/ChatMessagesResponseBody.d.ts +50 -0
- package/dist/models/ChatMessagesResponseBody.js +74 -0
- package/dist/models/ChatMessagesResponseBody.js.map +1 -0
- package/dist/models/ChatMessagesShrinkRequest.d.ts +37 -0
- package/dist/models/ChatMessagesShrinkRequest.js +66 -0
- package/dist/models/ChatMessagesShrinkRequest.js.map +1 -0
- package/dist/models/ChatMessagesTaskStopRequest.d.ts +26 -0
- package/dist/models/ChatMessagesTaskStopRequest.js +60 -0
- package/dist/models/ChatMessagesTaskStopRequest.js.map +1 -0
- package/dist/models/ChatMessagesTaskStopResponse.d.ts +19 -0
- package/dist/models/ChatMessagesTaskStopResponse.js +69 -0
- package/dist/models/ChatMessagesTaskStopResponse.js.map +1 -0
- package/dist/models/ChatMessagesTaskStopResponseBody.d.ts +23 -0
- package/dist/models/ChatMessagesTaskStopResponseBody.js +60 -0
- package/dist/models/ChatMessagesTaskStopResponseBody.js.map +1 -0
- package/dist/models/CreateAppInstanceRequest.d.ts +0 -2
- package/dist/models/CreateAppInstanceRequest.js +0 -2
- package/dist/models/CreateAppInstanceRequest.js.map +1 -1
- package/dist/models/CreateCustomAgentRequest.d.ts +30 -0
- package/dist/models/CreateCustomAgentRequest.js +69 -0
- package/dist/models/CreateCustomAgentRequest.js.map +1 -0
- package/dist/models/CreateCustomAgentResponse.d.ts +19 -0
- package/dist/models/CreateCustomAgentResponse.js +69 -0
- package/dist/models/CreateCustomAgentResponse.js.map +1 -0
- package/dist/models/CreateCustomAgentResponseBody.d.ts +39 -0
- package/dist/models/CreateCustomAgentResponseBody.js +73 -0
- package/dist/models/CreateCustomAgentResponseBody.js.map +1 -0
- package/dist/models/CreateCustomAgentShrinkRequest.d.ts +30 -0
- package/dist/models/CreateCustomAgentShrinkRequest.js +66 -0
- package/dist/models/CreateCustomAgentShrinkRequest.js.map +1 -0
- package/dist/models/DeleteCustomAgentRequest.d.ts +26 -0
- package/dist/models/DeleteCustomAgentRequest.js +60 -0
- package/dist/models/DeleteCustomAgentRequest.js.map +1 -0
- package/dist/models/DeleteCustomAgentResponse.d.ts +19 -0
- package/dist/models/DeleteCustomAgentResponse.js +69 -0
- package/dist/models/DeleteCustomAgentResponse.js.map +1 -0
- package/dist/models/DeleteCustomAgentResponseBody.d.ts +23 -0
- package/dist/models/DeleteCustomAgentResponseBody.js +60 -0
- package/dist/models/DeleteCustomAgentResponseBody.js.map +1 -0
- package/dist/models/DescribeEventsListRequest.d.ts +46 -0
- package/dist/models/DescribeEventsListRequest.js +68 -0
- package/dist/models/DescribeEventsListRequest.js.map +1 -0
- package/dist/models/DescribeEventsListResponse.d.ts +19 -0
- package/dist/models/DescribeEventsListResponse.js +69 -0
- package/dist/models/DescribeEventsListResponse.js.map +1 -0
- package/dist/models/DescribeEventsListResponseBody.d.ts +83 -0
- package/dist/models/DescribeEventsListResponseBody.js +107 -0
- package/dist/models/DescribeEventsListResponseBody.js.map +1 -0
- package/dist/models/GetConversationsRequest.d.ts +38 -0
- package/dist/models/GetConversationsRequest.js +66 -0
- package/dist/models/GetConversationsRequest.js.map +1 -0
- package/dist/models/GetConversationsResponse.d.ts +19 -0
- package/dist/models/GetConversationsResponse.js +69 -0
- package/dist/models/GetConversationsResponse.js.map +1 -0
- package/dist/models/GetConversationsResponseBody.d.ts +53 -0
- package/dist/models/GetConversationsResponseBody.js +92 -0
- package/dist/models/GetConversationsResponseBody.js.map +1 -0
- package/dist/models/GetCustomAgentRequest.d.ts +23 -0
- package/dist/models/GetCustomAgentRequest.js +60 -0
- package/dist/models/GetCustomAgentRequest.js.map +1 -0
- package/dist/models/GetCustomAgentResponse.d.ts +19 -0
- package/dist/models/GetCustomAgentResponse.js +69 -0
- package/dist/models/GetCustomAgentResponse.js.map +1 -0
- package/dist/models/GetCustomAgentResponseBody.d.ts +41 -0
- package/dist/models/GetCustomAgentResponseBody.js +75 -0
- package/dist/models/GetCustomAgentResponseBody.js.map +1 -0
- package/dist/models/GetMessagesRequest.d.ts +33 -0
- package/dist/models/GetMessagesRequest.js +64 -0
- package/dist/models/GetMessagesRequest.js.map +1 -0
- package/dist/models/GetMessagesResponse.d.ts +19 -0
- package/dist/models/GetMessagesResponse.js +69 -0
- package/dist/models/GetMessagesResponse.js.map +1 -0
- package/dist/models/GetMessagesResponseBody.d.ts +64 -0
- package/dist/models/GetMessagesResponseBody.js +101 -0
- package/dist/models/GetMessagesResponseBody.js.map +1 -0
- package/dist/models/ListCustomAgentRequest.d.ts +28 -0
- package/dist/models/ListCustomAgentRequest.js +62 -0
- package/dist/models/ListCustomAgentRequest.js.map +1 -0
- package/dist/models/ListCustomAgentResponse.d.ts +19 -0
- package/dist/models/ListCustomAgentResponse.js +69 -0
- package/dist/models/ListCustomAgentResponse.js.map +1 -0
- package/dist/models/ListCustomAgentResponseBody.d.ts +72 -0
- package/dist/models/ListCustomAgentResponseBody.js +103 -0
- package/dist/models/ListCustomAgentResponseBody.js.map +1 -0
- package/dist/models/ListCustomAgentToolsRequest.d.ts +18 -0
- package/dist/models/ListCustomAgentToolsRequest.js +58 -0
- package/dist/models/ListCustomAgentToolsRequest.js.map +1 -0
- package/dist/models/ListCustomAgentToolsResponse.d.ts +19 -0
- package/dist/models/ListCustomAgentToolsResponse.js +69 -0
- package/dist/models/ListCustomAgentToolsResponse.js.map +1 -0
- package/dist/models/ListCustomAgentToolsResponseBody.d.ts +49 -0
- package/dist/models/ListCustomAgentToolsResponseBody.js +92 -0
- package/dist/models/ListCustomAgentToolsResponseBody.js.map +1 -0
- package/dist/models/ModifyMessagesFeedbacksRequest.d.ts +29 -0
- package/dist/models/ModifyMessagesFeedbacksRequest.js +64 -0
- package/dist/models/ModifyMessagesFeedbacksRequest.js.map +1 -0
- package/dist/models/ModifyMessagesFeedbacksResponse.d.ts +19 -0
- package/dist/models/ModifyMessagesFeedbacksResponse.js +69 -0
- package/dist/models/ModifyMessagesFeedbacksResponse.js.map +1 -0
- package/dist/models/ModifyMessagesFeedbacksResponseBody.d.ts +23 -0
- package/dist/models/ModifyMessagesFeedbacksResponseBody.js +60 -0
- package/dist/models/ModifyMessagesFeedbacksResponseBody.js.map +1 -0
- package/dist/models/UpdateCustomAgentRequest.d.ts +39 -0
- package/dist/models/UpdateCustomAgentRequest.js +71 -0
- package/dist/models/UpdateCustomAgentRequest.js.map +1 -0
- package/dist/models/UpdateCustomAgentResponse.d.ts +19 -0
- package/dist/models/UpdateCustomAgentResponse.js +69 -0
- package/dist/models/UpdateCustomAgentResponse.js.map +1 -0
- package/dist/models/UpdateCustomAgentResponseBody.d.ts +34 -0
- package/dist/models/UpdateCustomAgentResponseBody.js +71 -0
- package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -0
- package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +39 -0
- package/dist/models/UpdateCustomAgentShrinkRequest.js +68 -0
- package/dist/models/UpdateCustomAgentShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +45 -0
- package/dist/models/model.js +93 -2
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +720 -0
- package/src/models/ChatMessagesRequest.ts +111 -0
- package/src/models/ChatMessagesResponse.ts +40 -0
- package/src/models/ChatMessagesResponseBody.ts +79 -0
- package/src/models/ChatMessagesShrinkRequest.ts +58 -0
- package/src/models/ChatMessagesTaskStopRequest.ts +41 -0
- package/src/models/ChatMessagesTaskStopResponse.ts +40 -0
- package/src/models/ChatMessagesTaskStopResponseBody.ts +38 -0
- package/src/models/CreateAppInstanceRequest.ts +0 -2
- package/src/models/CreateCustomAgentRequest.ts +54 -0
- package/src/models/CreateCustomAgentResponse.ts +40 -0
- package/src/models/CreateCustomAgentResponseBody.ts +67 -0
- package/src/models/CreateCustomAgentShrinkRequest.ts +51 -0
- package/src/models/DeleteCustomAgentRequest.ts +41 -0
- package/src/models/DeleteCustomAgentResponse.ts +40 -0
- package/src/models/DeleteCustomAgentResponseBody.ts +38 -0
- package/src/models/DescribeEventsListRequest.ts +69 -0
- package/src/models/DescribeEventsListResponse.ts +40 -0
- package/src/models/DescribeEventsListResponseBody.ts +136 -0
- package/src/models/GetConversationsRequest.ts +59 -0
- package/src/models/GetConversationsResponse.ts +40 -0
- package/src/models/GetConversationsResponseBody.ts +91 -0
- package/src/models/GetCustomAgentRequest.ts +38 -0
- package/src/models/GetCustomAgentResponse.ts +40 -0
- package/src/models/GetCustomAgentResponseBody.ts +71 -0
- package/src/models/GetMessagesRequest.ts +52 -0
- package/src/models/GetMessagesResponse.ts +40 -0
- package/src/models/GetMessagesResponseBody.ts +111 -0
- package/src/models/ListCustomAgentRequest.ts +45 -0
- package/src/models/ListCustomAgentResponse.ts +40 -0
- package/src/models/ListCustomAgentResponseBody.ts +121 -0
- package/src/models/ListCustomAgentToolsRequest.ts +31 -0
- package/src/models/ListCustomAgentToolsResponse.ts +40 -0
- package/src/models/ListCustomAgentToolsResponseBody.ts +87 -0
- package/src/models/ModifyMessagesFeedbacksRequest.ts +48 -0
- package/src/models/ModifyMessagesFeedbacksResponse.ts +40 -0
- package/src/models/ModifyMessagesFeedbacksResponseBody.ts +38 -0
- package/src/models/UpdateCustomAgentRequest.ts +65 -0
- package/src/models/UpdateCustomAgentResponse.ts +40 -0
- package/src/models/UpdateCustomAgentResponseBody.ts +60 -0
- package/src/models/UpdateCustomAgentShrinkRequest.ts +62 -0
- package/src/models/model.ts +45 -0
package/src/client.ts
CHANGED
|
@@ -29,6 +29,182 @@ export default class Client extends OpenApi {
|
|
|
29
29
|
return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
/**
|
|
33
|
+
* 发送对话消息
|
|
34
|
+
*
|
|
35
|
+
* @param tmpReq - ChatMessagesRequest
|
|
36
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
37
|
+
* @returns ChatMessagesResponse
|
|
38
|
+
*/
|
|
39
|
+
async *chatMessagesWithSSE(tmpReq: $_model.ChatMessagesRequest, runtime: $dara.RuntimeOptions): AsyncGenerator<$_model.ChatMessagesResponse, any, unknown> {
|
|
40
|
+
tmpReq.validate();
|
|
41
|
+
let request = new $_model.ChatMessagesShrinkRequest({ });
|
|
42
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
43
|
+
if (!$dara.isNull(tmpReq.inputs)) {
|
|
44
|
+
request.inputsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.inputs, "Inputs", "json");
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
let query = { };
|
|
48
|
+
if (!$dara.isNull(request.apiId)) {
|
|
49
|
+
query["ApiId"] = request.apiId;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (!$dara.isNull(request.conversationId)) {
|
|
53
|
+
query["ConversationId"] = request.conversationId;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (!$dara.isNull(request.inputsShrink)) {
|
|
57
|
+
query["Inputs"] = request.inputsShrink;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (!$dara.isNull(request.parentMessageId)) {
|
|
61
|
+
query["ParentMessageId"] = request.parentMessageId;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (!$dara.isNull(request.query)) {
|
|
65
|
+
query["Query"] = request.query;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
69
|
+
query: OpenApiUtil.query(query),
|
|
70
|
+
});
|
|
71
|
+
let params = new $OpenApiUtil.Params({
|
|
72
|
+
action: "ChatMessages",
|
|
73
|
+
version: "2025-05-07",
|
|
74
|
+
protocol: "HTTPS",
|
|
75
|
+
pathname: "/",
|
|
76
|
+
method: "POST",
|
|
77
|
+
authType: "AK",
|
|
78
|
+
style: "RPC",
|
|
79
|
+
reqBodyType: "formData",
|
|
80
|
+
bodyType: "json",
|
|
81
|
+
});
|
|
82
|
+
let sseResp = await this.callSSEApi(params, req, runtime);
|
|
83
|
+
|
|
84
|
+
for await (let resp of sseResp) {
|
|
85
|
+
let data = JSON.parse(resp.event.data);
|
|
86
|
+
yield $dara.cast<$_model.ChatMessagesResponse>({
|
|
87
|
+
statusCode: resp.statusCode,
|
|
88
|
+
headers: resp.headers,
|
|
89
|
+
body: {
|
|
90
|
+
...data,
|
|
91
|
+
RequestId: resp.event.id,
|
|
92
|
+
Message: resp.event.event,
|
|
93
|
+
},
|
|
94
|
+
}, new $_model.ChatMessagesResponse({}));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* 发送对话消息
|
|
100
|
+
*
|
|
101
|
+
* @param tmpReq - ChatMessagesRequest
|
|
102
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
103
|
+
* @returns ChatMessagesResponse
|
|
104
|
+
*/
|
|
105
|
+
async chatMessagesWithOptions(tmpReq: $_model.ChatMessagesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ChatMessagesResponse> {
|
|
106
|
+
tmpReq.validate();
|
|
107
|
+
let request = new $_model.ChatMessagesShrinkRequest({ });
|
|
108
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
109
|
+
if (!$dara.isNull(tmpReq.inputs)) {
|
|
110
|
+
request.inputsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.inputs, "Inputs", "json");
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
let query = { };
|
|
114
|
+
if (!$dara.isNull(request.apiId)) {
|
|
115
|
+
query["ApiId"] = request.apiId;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (!$dara.isNull(request.conversationId)) {
|
|
119
|
+
query["ConversationId"] = request.conversationId;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (!$dara.isNull(request.inputsShrink)) {
|
|
123
|
+
query["Inputs"] = request.inputsShrink;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (!$dara.isNull(request.parentMessageId)) {
|
|
127
|
+
query["ParentMessageId"] = request.parentMessageId;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (!$dara.isNull(request.query)) {
|
|
131
|
+
query["Query"] = request.query;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
135
|
+
query: OpenApiUtil.query(query),
|
|
136
|
+
});
|
|
137
|
+
let params = new $OpenApiUtil.Params({
|
|
138
|
+
action: "ChatMessages",
|
|
139
|
+
version: "2025-05-07",
|
|
140
|
+
protocol: "HTTPS",
|
|
141
|
+
pathname: "/",
|
|
142
|
+
method: "POST",
|
|
143
|
+
authType: "AK",
|
|
144
|
+
style: "RPC",
|
|
145
|
+
reqBodyType: "formData",
|
|
146
|
+
bodyType: "json",
|
|
147
|
+
});
|
|
148
|
+
return $dara.cast<$_model.ChatMessagesResponse>(await this.callApi(params, req, runtime), new $_model.ChatMessagesResponse({}));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* 发送对话消息
|
|
153
|
+
*
|
|
154
|
+
* @param request - ChatMessagesRequest
|
|
155
|
+
* @returns ChatMessagesResponse
|
|
156
|
+
*/
|
|
157
|
+
async chatMessages(request: $_model.ChatMessagesRequest): Promise<$_model.ChatMessagesResponse> {
|
|
158
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
159
|
+
return await this.chatMessagesWithOptions(request, runtime);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* 停止对话
|
|
164
|
+
*
|
|
165
|
+
* @param request - ChatMessagesTaskStopRequest
|
|
166
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
167
|
+
* @returns ChatMessagesTaskStopResponse
|
|
168
|
+
*/
|
|
169
|
+
async chatMessagesTaskStopWithOptions(request: $_model.ChatMessagesTaskStopRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ChatMessagesTaskStopResponse> {
|
|
170
|
+
request.validate();
|
|
171
|
+
let query = { };
|
|
172
|
+
if (!$dara.isNull(request.apiId)) {
|
|
173
|
+
query["ApiId"] = request.apiId;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
if (!$dara.isNull(request.taskId)) {
|
|
177
|
+
query["TaskId"] = request.taskId;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
181
|
+
query: OpenApiUtil.query(query),
|
|
182
|
+
});
|
|
183
|
+
let params = new $OpenApiUtil.Params({
|
|
184
|
+
action: "ChatMessagesTaskStop",
|
|
185
|
+
version: "2025-05-07",
|
|
186
|
+
protocol: "HTTPS",
|
|
187
|
+
pathname: "/",
|
|
188
|
+
method: "POST",
|
|
189
|
+
authType: "AK",
|
|
190
|
+
style: "RPC",
|
|
191
|
+
reqBodyType: "formData",
|
|
192
|
+
bodyType: "json",
|
|
193
|
+
});
|
|
194
|
+
return $dara.cast<$_model.ChatMessagesTaskStopResponse>(await this.callApi(params, req, runtime), new $_model.ChatMessagesTaskStopResponse({}));
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* 停止对话
|
|
199
|
+
*
|
|
200
|
+
* @param request - ChatMessagesTaskStopRequest
|
|
201
|
+
* @returns ChatMessagesTaskStopResponse
|
|
202
|
+
*/
|
|
203
|
+
async chatMessagesTaskStop(request: $_model.ChatMessagesTaskStopRequest): Promise<$_model.ChatMessagesTaskStopResponse> {
|
|
204
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
205
|
+
return await this.chatMessagesTaskStopWithOptions(request, runtime);
|
|
206
|
+
}
|
|
207
|
+
|
|
32
208
|
/**
|
|
33
209
|
* 创建应用服务实例
|
|
34
210
|
*
|
|
@@ -129,6 +305,70 @@ export default class Client extends OpenApi {
|
|
|
129
305
|
return await this.createAppInstanceWithOptions(request, runtime);
|
|
130
306
|
}
|
|
131
307
|
|
|
308
|
+
/**
|
|
309
|
+
* 创建自定义agent
|
|
310
|
+
*
|
|
311
|
+
* @param tmpReq - CreateCustomAgentRequest
|
|
312
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
313
|
+
* @returns CreateCustomAgentResponse
|
|
314
|
+
*/
|
|
315
|
+
async createCustomAgentWithOptions(tmpReq: $_model.CreateCustomAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateCustomAgentResponse> {
|
|
316
|
+
tmpReq.validate();
|
|
317
|
+
let request = new $_model.CreateCustomAgentShrinkRequest({ });
|
|
318
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
319
|
+
if (!$dara.isNull(tmpReq.tools)) {
|
|
320
|
+
request.toolsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tools, "Tools", "json");
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
let query = { };
|
|
324
|
+
if (!$dara.isNull(request.apiId)) {
|
|
325
|
+
query["ApiId"] = request.apiId;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
if (!$dara.isNull(request.enableTools)) {
|
|
329
|
+
query["EnableTools"] = request.enableTools;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
if (!$dara.isNull(request.name)) {
|
|
333
|
+
query["Name"] = request.name;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
if (!$dara.isNull(request.systemPrompt)) {
|
|
337
|
+
query["SystemPrompt"] = request.systemPrompt;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
if (!$dara.isNull(request.toolsShrink)) {
|
|
341
|
+
query["Tools"] = request.toolsShrink;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
345
|
+
query: OpenApiUtil.query(query),
|
|
346
|
+
});
|
|
347
|
+
let params = new $OpenApiUtil.Params({
|
|
348
|
+
action: "CreateCustomAgent",
|
|
349
|
+
version: "2025-05-07",
|
|
350
|
+
protocol: "HTTPS",
|
|
351
|
+
pathname: "/",
|
|
352
|
+
method: "POST",
|
|
353
|
+
authType: "AK",
|
|
354
|
+
style: "RPC",
|
|
355
|
+
reqBodyType: "formData",
|
|
356
|
+
bodyType: "json",
|
|
357
|
+
});
|
|
358
|
+
return $dara.cast<$_model.CreateCustomAgentResponse>(await this.callApi(params, req, runtime), new $_model.CreateCustomAgentResponse({}));
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* 创建自定义agent
|
|
363
|
+
*
|
|
364
|
+
* @param request - CreateCustomAgentRequest
|
|
365
|
+
* @returns CreateCustomAgentResponse
|
|
366
|
+
*/
|
|
367
|
+
async createCustomAgent(request: $_model.CreateCustomAgentRequest): Promise<$_model.CreateCustomAgentResponse> {
|
|
368
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
369
|
+
return await this.createCustomAgentWithOptions(request, runtime);
|
|
370
|
+
}
|
|
371
|
+
|
|
132
372
|
/**
|
|
133
373
|
* 删除应用服务实例
|
|
134
374
|
*
|
|
@@ -179,6 +419,52 @@ export default class Client extends OpenApi {
|
|
|
179
419
|
return await this.deleteAppInstanceWithOptions(request, runtime);
|
|
180
420
|
}
|
|
181
421
|
|
|
422
|
+
/**
|
|
423
|
+
* 删除Custom Agent
|
|
424
|
+
*
|
|
425
|
+
* @param request - DeleteCustomAgentRequest
|
|
426
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
427
|
+
* @returns DeleteCustomAgentResponse
|
|
428
|
+
*/
|
|
429
|
+
async deleteCustomAgentWithOptions(request: $_model.DeleteCustomAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteCustomAgentResponse> {
|
|
430
|
+
request.validate();
|
|
431
|
+
let query = { };
|
|
432
|
+
if (!$dara.isNull(request.apiId)) {
|
|
433
|
+
query["ApiId"] = request.apiId;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
if (!$dara.isNull(request.customAgentId)) {
|
|
437
|
+
query["CustomAgentId"] = request.customAgentId;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
441
|
+
query: OpenApiUtil.query(query),
|
|
442
|
+
});
|
|
443
|
+
let params = new $OpenApiUtil.Params({
|
|
444
|
+
action: "DeleteCustomAgent",
|
|
445
|
+
version: "2025-05-07",
|
|
446
|
+
protocol: "HTTPS",
|
|
447
|
+
pathname: "/",
|
|
448
|
+
method: "POST",
|
|
449
|
+
authType: "AK",
|
|
450
|
+
style: "RPC",
|
|
451
|
+
reqBodyType: "formData",
|
|
452
|
+
bodyType: "json",
|
|
453
|
+
});
|
|
454
|
+
return $dara.cast<$_model.DeleteCustomAgentResponse>(await this.callApi(params, req, runtime), new $_model.DeleteCustomAgentResponse({}));
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* 删除Custom Agent
|
|
459
|
+
*
|
|
460
|
+
* @param request - DeleteCustomAgentRequest
|
|
461
|
+
* @returns DeleteCustomAgentResponse
|
|
462
|
+
*/
|
|
463
|
+
async deleteCustomAgent(request: $_model.DeleteCustomAgentRequest): Promise<$_model.DeleteCustomAgentResponse> {
|
|
464
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
465
|
+
return await this.deleteCustomAgentWithOptions(request, runtime);
|
|
466
|
+
}
|
|
467
|
+
|
|
182
468
|
/**
|
|
183
469
|
* 查询应用服务详情
|
|
184
470
|
*
|
|
@@ -283,6 +569,68 @@ export default class Client extends OpenApi {
|
|
|
283
569
|
return await this.describeAppInstancesWithOptions(request, runtime);
|
|
284
570
|
}
|
|
285
571
|
|
|
572
|
+
/**
|
|
573
|
+
* 查询事件信息列表
|
|
574
|
+
*
|
|
575
|
+
* @param request - DescribeEventsListRequest
|
|
576
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
577
|
+
* @returns DescribeEventsListResponse
|
|
578
|
+
*/
|
|
579
|
+
async describeEventsListWithOptions(request: $_model.DescribeEventsListRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeEventsListResponse> {
|
|
580
|
+
request.validate();
|
|
581
|
+
let query = { };
|
|
582
|
+
if (!$dara.isNull(request.endTime)) {
|
|
583
|
+
query["EndTime"] = request.endTime;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
if (!$dara.isNull(request.instanceIdList)) {
|
|
587
|
+
query["InstanceIdList"] = request.instanceIdList;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
591
|
+
query["PageNumber"] = request.pageNumber;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
595
|
+
query["PageSize"] = request.pageSize;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
if (!$dara.isNull(request.regionId)) {
|
|
599
|
+
query["RegionId"] = request.regionId;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
if (!$dara.isNull(request.startTime)) {
|
|
603
|
+
query["StartTime"] = request.startTime;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
607
|
+
query: OpenApiUtil.query(query),
|
|
608
|
+
});
|
|
609
|
+
let params = new $OpenApiUtil.Params({
|
|
610
|
+
action: "DescribeEventsList",
|
|
611
|
+
version: "2025-05-07",
|
|
612
|
+
protocol: "HTTPS",
|
|
613
|
+
pathname: "/",
|
|
614
|
+
method: "POST",
|
|
615
|
+
authType: "AK",
|
|
616
|
+
style: "RPC",
|
|
617
|
+
reqBodyType: "formData",
|
|
618
|
+
bodyType: "json",
|
|
619
|
+
});
|
|
620
|
+
return $dara.cast<$_model.DescribeEventsListResponse>(await this.callApi(params, req, runtime), new $_model.DescribeEventsListResponse({}));
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* 查询事件信息列表
|
|
625
|
+
*
|
|
626
|
+
* @param request - DescribeEventsListRequest
|
|
627
|
+
* @returns DescribeEventsListResponse
|
|
628
|
+
*/
|
|
629
|
+
async describeEventsList(request: $_model.DescribeEventsListRequest): Promise<$_model.DescribeEventsListResponse> {
|
|
630
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
631
|
+
return await this.describeEventsListWithOptions(request, runtime);
|
|
632
|
+
}
|
|
633
|
+
|
|
286
634
|
/**
|
|
287
635
|
* 查看实例认证信息
|
|
288
636
|
*
|
|
@@ -559,6 +907,256 @@ export default class Client extends OpenApi {
|
|
|
559
907
|
return await this.describeInstanceStorageConfigWithOptions(request, runtime);
|
|
560
908
|
}
|
|
561
909
|
|
|
910
|
+
/**
|
|
911
|
+
* 获取会话列表
|
|
912
|
+
*
|
|
913
|
+
* @param request - GetConversationsRequest
|
|
914
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
915
|
+
* @returns GetConversationsResponse
|
|
916
|
+
*/
|
|
917
|
+
async getConversationsWithOptions(request: $_model.GetConversationsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetConversationsResponse> {
|
|
918
|
+
request.validate();
|
|
919
|
+
let query = { };
|
|
920
|
+
if (!$dara.isNull(request.apiId)) {
|
|
921
|
+
query["ApiId"] = request.apiId;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
if (!$dara.isNull(request.lastId)) {
|
|
925
|
+
query["LastId"] = request.lastId;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
if (!$dara.isNull(request.limit)) {
|
|
929
|
+
query["Limit"] = request.limit;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
if (!$dara.isNull(request.pinned)) {
|
|
933
|
+
query["Pinned"] = request.pinned;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
if (!$dara.isNull(request.sortBy)) {
|
|
937
|
+
query["SortBy"] = request.sortBy;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
941
|
+
query: OpenApiUtil.query(query),
|
|
942
|
+
});
|
|
943
|
+
let params = new $OpenApiUtil.Params({
|
|
944
|
+
action: "GetConversations",
|
|
945
|
+
version: "2025-05-07",
|
|
946
|
+
protocol: "HTTPS",
|
|
947
|
+
pathname: "/",
|
|
948
|
+
method: "POST",
|
|
949
|
+
authType: "AK",
|
|
950
|
+
style: "RPC",
|
|
951
|
+
reqBodyType: "formData",
|
|
952
|
+
bodyType: "json",
|
|
953
|
+
});
|
|
954
|
+
return $dara.cast<$_model.GetConversationsResponse>(await this.callApi(params, req, runtime), new $_model.GetConversationsResponse({}));
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* 获取会话列表
|
|
959
|
+
*
|
|
960
|
+
* @param request - GetConversationsRequest
|
|
961
|
+
* @returns GetConversationsResponse
|
|
962
|
+
*/
|
|
963
|
+
async getConversations(request: $_model.GetConversationsRequest): Promise<$_model.GetConversationsResponse> {
|
|
964
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
965
|
+
return await this.getConversationsWithOptions(request, runtime);
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* 查询CustomAgent
|
|
970
|
+
*
|
|
971
|
+
* @param request - GetCustomAgentRequest
|
|
972
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
973
|
+
* @returns GetCustomAgentResponse
|
|
974
|
+
*/
|
|
975
|
+
async getCustomAgentWithOptions(request: $_model.GetCustomAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetCustomAgentResponse> {
|
|
976
|
+
request.validate();
|
|
977
|
+
let query = { };
|
|
978
|
+
if (!$dara.isNull(request.apiId)) {
|
|
979
|
+
query["ApiId"] = request.apiId;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
if (!$dara.isNull(request.customAgentId)) {
|
|
983
|
+
query["CustomAgentId"] = request.customAgentId;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
987
|
+
query: OpenApiUtil.query(query),
|
|
988
|
+
});
|
|
989
|
+
let params = new $OpenApiUtil.Params({
|
|
990
|
+
action: "GetCustomAgent",
|
|
991
|
+
version: "2025-05-07",
|
|
992
|
+
protocol: "HTTPS",
|
|
993
|
+
pathname: "/",
|
|
994
|
+
method: "POST",
|
|
995
|
+
authType: "AK",
|
|
996
|
+
style: "RPC",
|
|
997
|
+
reqBodyType: "formData",
|
|
998
|
+
bodyType: "json",
|
|
999
|
+
});
|
|
1000
|
+
return $dara.cast<$_model.GetCustomAgentResponse>(await this.callApi(params, req, runtime), new $_model.GetCustomAgentResponse({}));
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* 查询CustomAgent
|
|
1005
|
+
*
|
|
1006
|
+
* @param request - GetCustomAgentRequest
|
|
1007
|
+
* @returns GetCustomAgentResponse
|
|
1008
|
+
*/
|
|
1009
|
+
async getCustomAgent(request: $_model.GetCustomAgentRequest): Promise<$_model.GetCustomAgentResponse> {
|
|
1010
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1011
|
+
return await this.getCustomAgentWithOptions(request, runtime);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* 获取会话历史消息
|
|
1016
|
+
*
|
|
1017
|
+
* @param request - GetMessagesRequest
|
|
1018
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1019
|
+
* @returns GetMessagesResponse
|
|
1020
|
+
*/
|
|
1021
|
+
async getMessagesWithOptions(request: $_model.GetMessagesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetMessagesResponse> {
|
|
1022
|
+
request.validate();
|
|
1023
|
+
let query = { };
|
|
1024
|
+
if (!$dara.isNull(request.apiId)) {
|
|
1025
|
+
query["ApiId"] = request.apiId;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
if (!$dara.isNull(request.conversationId)) {
|
|
1029
|
+
query["ConversationId"] = request.conversationId;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
if (!$dara.isNull(request.firstId)) {
|
|
1033
|
+
query["FirstId"] = request.firstId;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
if (!$dara.isNull(request.limit)) {
|
|
1037
|
+
query["Limit"] = request.limit;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1041
|
+
query: OpenApiUtil.query(query),
|
|
1042
|
+
});
|
|
1043
|
+
let params = new $OpenApiUtil.Params({
|
|
1044
|
+
action: "GetMessages",
|
|
1045
|
+
version: "2025-05-07",
|
|
1046
|
+
protocol: "HTTPS",
|
|
1047
|
+
pathname: "/",
|
|
1048
|
+
method: "POST",
|
|
1049
|
+
authType: "AK",
|
|
1050
|
+
style: "RPC",
|
|
1051
|
+
reqBodyType: "formData",
|
|
1052
|
+
bodyType: "json",
|
|
1053
|
+
});
|
|
1054
|
+
return $dara.cast<$_model.GetMessagesResponse>(await this.callApi(params, req, runtime), new $_model.GetMessagesResponse({}));
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* 获取会话历史消息
|
|
1059
|
+
*
|
|
1060
|
+
* @param request - GetMessagesRequest
|
|
1061
|
+
* @returns GetMessagesResponse
|
|
1062
|
+
*/
|
|
1063
|
+
async getMessages(request: $_model.GetMessagesRequest): Promise<$_model.GetMessagesResponse> {
|
|
1064
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1065
|
+
return await this.getMessagesWithOptions(request, runtime);
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* 获取Custom Agent列表
|
|
1070
|
+
*
|
|
1071
|
+
* @param request - ListCustomAgentRequest
|
|
1072
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1073
|
+
* @returns ListCustomAgentResponse
|
|
1074
|
+
*/
|
|
1075
|
+
async listCustomAgentWithOptions(request: $_model.ListCustomAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListCustomAgentResponse> {
|
|
1076
|
+
request.validate();
|
|
1077
|
+
let query = { };
|
|
1078
|
+
if (!$dara.isNull(request.apiId)) {
|
|
1079
|
+
query["ApiId"] = request.apiId;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
1083
|
+
query["PageNumber"] = request.pageNumber;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
1087
|
+
query["PageSize"] = request.pageSize;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1091
|
+
query: OpenApiUtil.query(query),
|
|
1092
|
+
});
|
|
1093
|
+
let params = new $OpenApiUtil.Params({
|
|
1094
|
+
action: "ListCustomAgent",
|
|
1095
|
+
version: "2025-05-07",
|
|
1096
|
+
protocol: "HTTPS",
|
|
1097
|
+
pathname: "/",
|
|
1098
|
+
method: "POST",
|
|
1099
|
+
authType: "AK",
|
|
1100
|
+
style: "RPC",
|
|
1101
|
+
reqBodyType: "formData",
|
|
1102
|
+
bodyType: "json",
|
|
1103
|
+
});
|
|
1104
|
+
return $dara.cast<$_model.ListCustomAgentResponse>(await this.callApi(params, req, runtime), new $_model.ListCustomAgentResponse({}));
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* 获取Custom Agent列表
|
|
1109
|
+
*
|
|
1110
|
+
* @param request - ListCustomAgentRequest
|
|
1111
|
+
* @returns ListCustomAgentResponse
|
|
1112
|
+
*/
|
|
1113
|
+
async listCustomAgent(request: $_model.ListCustomAgentRequest): Promise<$_model.ListCustomAgentResponse> {
|
|
1114
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1115
|
+
return await this.listCustomAgentWithOptions(request, runtime);
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* 获取专属Agent可用工具
|
|
1120
|
+
*
|
|
1121
|
+
* @param request - ListCustomAgentToolsRequest
|
|
1122
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1123
|
+
* @returns ListCustomAgentToolsResponse
|
|
1124
|
+
*/
|
|
1125
|
+
async listCustomAgentToolsWithOptions(request: $_model.ListCustomAgentToolsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListCustomAgentToolsResponse> {
|
|
1126
|
+
request.validate();
|
|
1127
|
+
let query = { };
|
|
1128
|
+
if (!$dara.isNull(request.apiId)) {
|
|
1129
|
+
query["ApiId"] = request.apiId;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1133
|
+
query: OpenApiUtil.query(query),
|
|
1134
|
+
});
|
|
1135
|
+
let params = new $OpenApiUtil.Params({
|
|
1136
|
+
action: "ListCustomAgentTools",
|
|
1137
|
+
version: "2025-05-07",
|
|
1138
|
+
protocol: "HTTPS",
|
|
1139
|
+
pathname: "/",
|
|
1140
|
+
method: "POST",
|
|
1141
|
+
authType: "AK",
|
|
1142
|
+
style: "RPC",
|
|
1143
|
+
reqBodyType: "formData",
|
|
1144
|
+
bodyType: "json",
|
|
1145
|
+
});
|
|
1146
|
+
return $dara.cast<$_model.ListCustomAgentToolsResponse>(await this.callApi(params, req, runtime), new $_model.ListCustomAgentToolsResponse({}));
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* 获取专属Agent可用工具
|
|
1151
|
+
*
|
|
1152
|
+
* @param request - ListCustomAgentToolsRequest
|
|
1153
|
+
* @returns ListCustomAgentToolsResponse
|
|
1154
|
+
*/
|
|
1155
|
+
async listCustomAgentTools(request: $_model.ListCustomAgentToolsRequest): Promise<$_model.ListCustomAgentToolsResponse> {
|
|
1156
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1157
|
+
return await this.listCustomAgentToolsWithOptions(request, runtime);
|
|
1158
|
+
}
|
|
1159
|
+
|
|
562
1160
|
/**
|
|
563
1161
|
* 修改Supabase Auth相关配置
|
|
564
1162
|
*
|
|
@@ -921,6 +1519,60 @@ export default class Client extends OpenApi {
|
|
|
921
1519
|
return await this.modifyInstanceStorageConfigWithOptions(request, runtime);
|
|
922
1520
|
}
|
|
923
1521
|
|
|
1522
|
+
/**
|
|
1523
|
+
* 消息终端用户反馈、点赞/点踩
|
|
1524
|
+
*
|
|
1525
|
+
* @param request - ModifyMessagesFeedbacksRequest
|
|
1526
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1527
|
+
* @returns ModifyMessagesFeedbacksResponse
|
|
1528
|
+
*/
|
|
1529
|
+
async modifyMessagesFeedbacksWithOptions(request: $_model.ModifyMessagesFeedbacksRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyMessagesFeedbacksResponse> {
|
|
1530
|
+
request.validate();
|
|
1531
|
+
let query = { };
|
|
1532
|
+
if (!$dara.isNull(request.apiId)) {
|
|
1533
|
+
query["ApiId"] = request.apiId;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
if (!$dara.isNull(request.content)) {
|
|
1537
|
+
query["Content"] = request.content;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
if (!$dara.isNull(request.messageId)) {
|
|
1541
|
+
query["MessageId"] = request.messageId;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
if (!$dara.isNull(request.rating)) {
|
|
1545
|
+
query["Rating"] = request.rating;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1549
|
+
query: OpenApiUtil.query(query),
|
|
1550
|
+
});
|
|
1551
|
+
let params = new $OpenApiUtil.Params({
|
|
1552
|
+
action: "ModifyMessagesFeedbacks",
|
|
1553
|
+
version: "2025-05-07",
|
|
1554
|
+
protocol: "HTTPS",
|
|
1555
|
+
pathname: "/",
|
|
1556
|
+
method: "POST",
|
|
1557
|
+
authType: "AK",
|
|
1558
|
+
style: "RPC",
|
|
1559
|
+
reqBodyType: "formData",
|
|
1560
|
+
bodyType: "json",
|
|
1561
|
+
});
|
|
1562
|
+
return $dara.cast<$_model.ModifyMessagesFeedbacksResponse>(await this.callApi(params, req, runtime), new $_model.ModifyMessagesFeedbacksResponse({}));
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
* 消息终端用户反馈、点赞/点踩
|
|
1567
|
+
*
|
|
1568
|
+
* @param request - ModifyMessagesFeedbacksRequest
|
|
1569
|
+
* @returns ModifyMessagesFeedbacksResponse
|
|
1570
|
+
*/
|
|
1571
|
+
async modifyMessagesFeedbacks(request: $_model.ModifyMessagesFeedbacksRequest): Promise<$_model.ModifyMessagesFeedbacksResponse> {
|
|
1572
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1573
|
+
return await this.modifyMessagesFeedbacksWithOptions(request, runtime);
|
|
1574
|
+
}
|
|
1575
|
+
|
|
924
1576
|
/**
|
|
925
1577
|
* 重置实例密码
|
|
926
1578
|
*
|
|
@@ -1113,4 +1765,72 @@ export default class Client extends OpenApi {
|
|
|
1113
1765
|
return await this.stopInstanceWithOptions(request, runtime);
|
|
1114
1766
|
}
|
|
1115
1767
|
|
|
1768
|
+
/**
|
|
1769
|
+
* 更新Custom Agent
|
|
1770
|
+
*
|
|
1771
|
+
* @param tmpReq - UpdateCustomAgentRequest
|
|
1772
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1773
|
+
* @returns UpdateCustomAgentResponse
|
|
1774
|
+
*/
|
|
1775
|
+
async updateCustomAgentWithOptions(tmpReq: $_model.UpdateCustomAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateCustomAgentResponse> {
|
|
1776
|
+
tmpReq.validate();
|
|
1777
|
+
let request = new $_model.UpdateCustomAgentShrinkRequest({ });
|
|
1778
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1779
|
+
if (!$dara.isNull(tmpReq.tools)) {
|
|
1780
|
+
request.toolsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tools, "Tools", "json");
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
let query = { };
|
|
1784
|
+
if (!$dara.isNull(request.apiId)) {
|
|
1785
|
+
query["ApiId"] = request.apiId;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
if (!$dara.isNull(request.customAgentId)) {
|
|
1789
|
+
query["CustomAgentId"] = request.customAgentId;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
if (!$dara.isNull(request.enableTools)) {
|
|
1793
|
+
query["EnableTools"] = request.enableTools;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
if (!$dara.isNull(request.name)) {
|
|
1797
|
+
query["Name"] = request.name;
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
if (!$dara.isNull(request.systemPrompt)) {
|
|
1801
|
+
query["SystemPrompt"] = request.systemPrompt;
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
if (!$dara.isNull(request.toolsShrink)) {
|
|
1805
|
+
query["Tools"] = request.toolsShrink;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1809
|
+
query: OpenApiUtil.query(query),
|
|
1810
|
+
});
|
|
1811
|
+
let params = new $OpenApiUtil.Params({
|
|
1812
|
+
action: "UpdateCustomAgent",
|
|
1813
|
+
version: "2025-05-07",
|
|
1814
|
+
protocol: "HTTPS",
|
|
1815
|
+
pathname: "/",
|
|
1816
|
+
method: "POST",
|
|
1817
|
+
authType: "AK",
|
|
1818
|
+
style: "RPC",
|
|
1819
|
+
reqBodyType: "formData",
|
|
1820
|
+
bodyType: "json",
|
|
1821
|
+
});
|
|
1822
|
+
return $dara.cast<$_model.UpdateCustomAgentResponse>(await this.callApi(params, req, runtime), new $_model.UpdateCustomAgentResponse({}));
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
/**
|
|
1826
|
+
* 更新Custom Agent
|
|
1827
|
+
*
|
|
1828
|
+
* @param request - UpdateCustomAgentRequest
|
|
1829
|
+
* @returns UpdateCustomAgentResponse
|
|
1830
|
+
*/
|
|
1831
|
+
async updateCustomAgent(request: $_model.UpdateCustomAgentRequest): Promise<$_model.UpdateCustomAgentResponse> {
|
|
1832
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1833
|
+
return await this.updateCustomAgentWithOptions(request, runtime);
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1116
1836
|
}
|