tencentcloud-sdk-nodejs-tdai 4.1.152 → 4.1.157

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.
@@ -51,6 +51,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
51
51
  async DescribeAgentInstances(req, cb) {
52
52
  return this.request("DescribeAgentInstances", req, cb);
53
53
  }
54
+ async StartAgentTask(req, cb) {
55
+ return this.request("StartAgentTask", req, cb);
56
+ }
54
57
  async DescribeAgents(req, cb) {
55
58
  return this.request("DescribeAgents", req, cb);
56
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-tdai",
3
- "version": "4.1.152",
3
+ "version": "4.1.157",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { RemoveChatRequest, DescribeReportUrlResponse, DescribeAgentDutyTaskDetailRequest, DescribeChatDetailRequest, DescribeAgentsRequest, DescribeChatsRequest, ModifyChatTitleResponse, CreateAgentInstanceRequest, DescribeAgentDutyTasksResponse, RecoverAgentInstanceResponse, DescribeAgentsResponse, CreateChatCompletionRequest, ModifyChatTitleRequest, DescribeAgentInstancesRequest, IsolateAgentInstanceResponse, PauseAgentWorkRequest, CreateAgentInstanceResponse, DescribeAgentDutyTasksRequest, PauseAgentWorkResponse, DescribeChatDetailResponse, TerminateAgentInstanceResponse, ModifyAgentInstanceParametersResponse, IsolateAgentInstanceRequest, DescribeAgentInstanceRequest, ModifyAgentInstanceParametersRequest, ContinueAgentWorkResponse, DescribeAgentInstancesResponse, RecoverAgentInstanceRequest, ContinueAgentWorkRequest, DescribeChatsResponse, DescribeAgentInstanceResponse, CreateChatCompletionResponse, DescribeReportUrlRequest, DescribeAgentDutyTaskDetailResponse, RemoveChatResponse, TerminateAgentInstanceRequest } from "./tdai_models";
2
+ import { RemoveChatRequest, DescribeAgentDutyTaskDetailRequest, DescribeChatDetailRequest, DescribeAgentsRequest, DescribeChatsRequest, ModifyChatTitleResponse, CreateAgentInstanceRequest, ModifyChatTitleRequest, DescribeAgentDutyTasksResponse, RecoverAgentInstanceResponse, DescribeAgentsResponse, CreateChatCompletionRequest, DescribeReportUrlResponse, DescribeAgentInstancesRequest, IsolateAgentInstanceResponse, PauseAgentWorkRequest, CreateAgentInstanceResponse, DescribeAgentDutyTasksRequest, PauseAgentWorkResponse, DescribeChatDetailResponse, TerminateAgentInstanceResponse, ModifyAgentInstanceParametersResponse, IsolateAgentInstanceRequest, DescribeAgentInstanceRequest, ModifyAgentInstanceParametersRequest, ContinueAgentWorkResponse, DescribeAgentInstancesResponse, StartAgentTaskRequest, RecoverAgentInstanceRequest, ContinueAgentWorkRequest, DescribeChatsResponse, DescribeAgentInstanceResponse, CreateChatCompletionResponse, DescribeReportUrlRequest, DescribeAgentDutyTaskDetailResponse, RemoveChatResponse, TerminateAgentInstanceRequest, StartAgentTaskResponse } from "./tdai_models";
3
3
  /**
4
4
  * tdai client
5
5
  * @class
@@ -70,6 +70,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
70
70
  * 本接口(DescribeAgentInstances)用于查询智能体实例列表,通常在用户查询所购买的所有智能体列表。
71
71
  */
72
72
  DescribeAgentInstances(req: DescribeAgentInstancesRequest, cb?: (error: string, rep: DescribeAgentInstancesResponse) => void): Promise<DescribeAgentInstancesResponse>;
73
+ /**
74
+ * 该接口用于启动一个智能体的任务
75
+ */
76
+ StartAgentTask(req: StartAgentTaskRequest, cb?: (error: string, rep: StartAgentTaskResponse) => void): Promise<StartAgentTaskResponse>;
73
77
  /**
74
78
  * 本接口(DescribeAgents)用于查询智能体列表,通常在用户查询所购买的所有智能体列表。
75
79
  */
@@ -124,6 +124,12 @@ class Client extends TencentCloudCommon.AbstractClient {
124
124
  async DescribeAgentInstances(req, cb) {
125
125
  return this.request("DescribeAgentInstances", req, cb);
126
126
  }
127
+ /**
128
+ * 该接口用于启动一个智能体的任务
129
+ */
130
+ async StartAgentTask(req, cb) {
131
+ return this.request("StartAgentTask", req, cb);
132
+ }
127
133
  /**
128
134
  * 本接口(DescribeAgents)用于查询智能体列表,通常在用户查询所购买的所有智能体列表。
129
135
  */
@@ -25,17 +25,37 @@ export interface SqlAgentParameter {
25
25
  CodeRepo?: CodeRepo;
26
26
  }
27
27
  /**
28
- * DescribeReportUrl返回参数结构体
28
+ * 智能体值守任务信息
29
29
  */
30
- export interface DescribeReportUrlResponse {
30
+ export interface AgentDutyTask {
31
31
  /**
32
- * 下载地址
32
+ * 任务ID
33
33
  */
34
- DownloadUrl?: string;
34
+ TaskId?: string;
35
35
  /**
36
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
36
+ * 任务创建时间
37
37
  */
38
- RequestId?: string;
38
+ CreateTime?: string;
39
+ /**
40
+ * 任务开始运行时间
41
+ */
42
+ StartTime?: string;
43
+ /**
44
+ * 任务结束时间
45
+ */
46
+ FinishTime?: string;
47
+ /**
48
+ * 任务状态
49
+ */
50
+ Status?: string;
51
+ /**
52
+ * 对外展示的Extra信息
53
+ */
54
+ ResultExtraKey?: Array<string>;
55
+ /**
56
+ * 业务的额外敏感信息
57
+ */
58
+ Extra?: Array<ExtraInfo>;
39
59
  }
40
60
  /**
41
61
  * DescribeAgentDutyTaskDetail请求参数结构体
@@ -78,7 +98,7 @@ export interface DescribeChatDetailRequest {
78
98
  /**
79
99
  * 开始拉取的流式TokenID。0表示从该流最早的TokenID开始获取
80
100
  */
81
- BeginStreamingTokenId?: string;
101
+ BeginStreamingTokenId?: number;
82
102
  /**
83
103
  * 单次获取的token数量,默认2000
84
104
  */
@@ -164,6 +184,23 @@ export interface CreateAgentInstanceRequest {
164
184
  */
165
185
  Tags?: Array<TagItem>;
166
186
  }
187
+ /**
188
+ * ModifyChatTitle请求参数结构体
189
+ */
190
+ export interface ModifyChatTitleRequest {
191
+ /**
192
+ * 智能体ID
193
+ */
194
+ InstanceId: string;
195
+ /**
196
+ * 会话Id
197
+ */
198
+ ChatId?: string;
199
+ /**
200
+ * 标题
201
+ */
202
+ Title?: string;
203
+ }
167
204
  /**
168
205
  * 流式输出消息数据体
169
206
  */
@@ -287,21 +324,17 @@ export interface CreateChatCompletionRequest {
287
324
  IsChatHidden?: boolean;
288
325
  }
289
326
  /**
290
- * ModifyChatTitle请求参数结构体
327
+ * DescribeReportUrl返回参数结构体
291
328
  */
292
- export interface ModifyChatTitleRequest {
293
- /**
294
- * 智能体ID
295
- */
296
- InstanceId: string;
329
+ export interface DescribeReportUrlResponse {
297
330
  /**
298
- * 会话Id
331
+ * 下载地址
299
332
  */
300
- ChatId?: string;
333
+ DownloadUrl?: string;
301
334
  /**
302
- * 标题
335
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
303
336
  */
304
- Title?: string;
337
+ RequestId?: string;
305
338
  }
306
339
  /**
307
340
  * DescribeAgentInstances请求参数结构体
@@ -366,6 +399,40 @@ export interface PauseAgentWorkRequest {
366
399
  */
367
400
  AgentTaskType?: string;
368
401
  }
402
+ /**
403
+ * 资源标签
404
+ */
405
+ export interface TagItem {
406
+ /**
407
+ * 标签键
408
+ */
409
+ TagKey?: string;
410
+ /**
411
+ * 标签值
412
+ */
413
+ TagValue?: string;
414
+ }
415
+ /**
416
+ * 智能体值守任务额外信息
417
+ */
418
+ export interface ExtraInfo {
419
+ /**
420
+ * 出参额外信息的Key
421
+ */
422
+ Key?: string;
423
+ /**
424
+ * 额外信息描述
425
+ */
426
+ Description?: string;
427
+ /**
428
+ * ExtraInfo的值
429
+ */
430
+ Value?: string;
431
+ /**
432
+ * 值的数据结构类型
433
+ */
434
+ ValueType?: string;
435
+ }
369
436
  /**
370
437
  * CreateAgentInstance返回参数结构体
371
438
  */
@@ -543,17 +610,17 @@ export interface DescribeAgentInstancesResponse {
543
610
  RequestId?: string;
544
611
  }
545
612
  /**
546
- * 资源标签
613
+ * StartAgentTask请求参数结构体
547
614
  */
548
- export interface TagItem {
615
+ export interface StartAgentTaskRequest {
549
616
  /**
550
- * 标签键
617
+ * 实例ID
551
618
  */
552
- TagKey?: string;
619
+ InstanceId: string;
553
620
  /**
554
- * 标签值
621
+ * 配置Token
555
622
  */
556
- TagValue?: string;
623
+ InstanceToken?: string;
557
624
  }
558
625
  /**
559
626
  * 对话接口出参
@@ -793,6 +860,10 @@ export type DescribeReportUrlRequest = null;
793
860
  * DescribeAgentDutyTaskDetail返回参数结构体
794
861
  */
795
862
  export interface DescribeAgentDutyTaskDetailResponse {
863
+ /**
864
+ * 任务详细信息
865
+ */
866
+ AgentDutyTask?: AgentDutyTask;
796
867
  /**
797
868
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
798
869
  */
@@ -887,3 +958,16 @@ export interface TerminateAgentInstanceRequest {
887
958
  */
888
959
  InstanceId: string;
889
960
  }
961
+ /**
962
+ * StartAgentTask返回参数结构体
963
+ */
964
+ export interface StartAgentTaskResponse {
965
+ /**
966
+ * 任务ID
967
+ */
968
+ TaskId?: string;
969
+ /**
970
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
971
+ */
972
+ RequestId?: string;
973
+ }