tencentcloud-sdk-nodejs-tdai 4.1.117
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/LICENSE +201 -0
- package/README.md +203 -0
- package/es/index.js +1 -0
- package/es/services/index.js +1 -0
- package/es/services/tdai/index.js +4 -0
- package/es/services/tdai/v20250717/index.js +6 -0
- package/es/services/tdai/v20250717/tdai_client.js +60 -0
- package/es/services/tdai/v20250717/tdai_models.js +0 -0
- package/package.json +66 -0
- package/tencentcloud/index.d.ts +1 -0
- package/tencentcloud/index.js +4 -0
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +4 -0
- package/tencentcloud/services/tdai/index.d.ts +6 -0
- package/tencentcloud/services/tdai/index.js +7 -0
- package/tencentcloud/services/tdai/v20250717/index.d.ts +6 -0
- package/tencentcloud/services/tdai/v20250717/index.js +10 -0
- package/tencentcloud/services/tdai/v20250717/tdai_client.d.ts +81 -0
- package/tencentcloud/services/tdai/v20250717/tdai_client.js +140 -0
- package/tencentcloud/services/tdai/v20250717/tdai_models.d.ts +877 -0
- package/tencentcloud/services/tdai/v20250717/tdai_models.js +18 -0
|
@@ -0,0 +1,81 @@
|
|
|
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";
|
|
3
|
+
/**
|
|
4
|
+
* tdai client
|
|
5
|
+
* @class
|
|
6
|
+
*/
|
|
7
|
+
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
|
+
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
|
+
/**
|
|
10
|
+
* 本接口(DescribeChatDetail)用于查询对话详情,通常在用户查询会话的历史记录时使用。
|
|
11
|
+
*/
|
|
12
|
+
DescribeChatDetail(req: DescribeChatDetailRequest, cb?: (error: string, rep: DescribeChatDetailResponse) => void): Promise<DescribeChatDetailResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* 本接口(RemoveChat)用于删除会话,通常在用户删除会话时使用。
|
|
15
|
+
*/
|
|
16
|
+
RemoveChat(req: RemoveChatRequest, cb?: (error: string, rep: RemoveChatResponse) => void): Promise<RemoveChatResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* 本接口(IsolateAgentInstance)用于隔离智能体实例,通常在用户需要隔离智能体实例时使用。
|
|
19
|
+
*/
|
|
20
|
+
IsolateAgentInstance(req: IsolateAgentInstanceRequest, cb?: (error: string, rep: IsolateAgentInstanceResponse) => void): Promise<IsolateAgentInstanceResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* 本接口(ContinueAgentWork)用于重启智能体实例的值守任务,通常在用户需要重启时使用。
|
|
23
|
+
*/
|
|
24
|
+
ContinueAgentWork(req: ContinueAgentWorkRequest, cb?: (error: string, rep: ContinueAgentWorkResponse) => void): Promise<ContinueAgentWorkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* 查询智能体值守任务列表
|
|
27
|
+
*/
|
|
28
|
+
DescribeAgentDutyTasks(req: DescribeAgentDutyTasksRequest, cb?: (error: string, rep: DescribeAgentDutyTasksResponse) => void): Promise<DescribeAgentDutyTasksResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* 本接口(PauseAgentWork)用于暂停智能体实例的值守任务,通常在用户需要暂停时使用。
|
|
31
|
+
*/
|
|
32
|
+
PauseAgentWork(req: PauseAgentWorkRequest, cb?: (error: string, rep: PauseAgentWorkResponse) => void): Promise<PauseAgentWorkResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* 本接口(DescribeChats)用于查询对话列表,通常在用户查询会话列表时使用。
|
|
35
|
+
*/
|
|
36
|
+
DescribeChats(req: DescribeChatsRequest, cb?: (error: string, rep: DescribeChatsResponse) => void): Promise<DescribeChatsResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* 本接口(DescribeAgentInstance)用于查询智能体实例详情,通常在用户查询所购买的所有智能体实例详情时使用。
|
|
39
|
+
*/
|
|
40
|
+
DescribeAgentInstance(req: DescribeAgentInstanceRequest, cb?: (error: string, rep: DescribeAgentInstanceResponse) => void): Promise<DescribeAgentInstanceResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* 用于创建一次回话的SSE接口
|
|
43
|
+
*/
|
|
44
|
+
CreateChatCompletion(req: CreateChatCompletionRequest, cb?: (error: string, rep: CreateChatCompletionResponse) => void): Promise<CreateChatCompletionResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* 本接口(ModifyChatTitle)用于修改会话标题,通常在用户修改会话标题时使用。
|
|
47
|
+
*/
|
|
48
|
+
ModifyChatTitle(req: ModifyChatTitleRequest, cb?: (error: string, rep: ModifyChatTitleResponse) => void): Promise<ModifyChatTitleResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* 查询智能体值守任务详情
|
|
51
|
+
*/
|
|
52
|
+
DescribeAgentDutyTaskDetail(req: DescribeAgentDutyTaskDetailRequest, cb?: (error: string, rep: DescribeAgentDutyTaskDetailResponse) => void): Promise<DescribeAgentDutyTaskDetailResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* 智能体报告地址生成并下载
|
|
55
|
+
*/
|
|
56
|
+
DescribeReportUrl(req?: DescribeReportUrlRequest, cb?: (error: string, rep: DescribeReportUrlResponse) => void): Promise<DescribeReportUrlResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* 本接口(TerminateAgentInstance)用于下线智能体实例,通常在用户需要下线智能体实例时使用。
|
|
59
|
+
*/
|
|
60
|
+
TerminateAgentInstance(req: TerminateAgentInstanceRequest, cb?: (error: string, rep: TerminateAgentInstanceResponse) => void): Promise<TerminateAgentInstanceResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* 本接口(RecoverAgentInstance)用于解隔离智能体实例,通常在用户需要解隔离智能体实例时使用。
|
|
63
|
+
*/
|
|
64
|
+
RecoverAgentInstance(req: RecoverAgentInstanceRequest, cb?: (error: string, rep: RecoverAgentInstanceResponse) => void): Promise<RecoverAgentInstanceResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* 本接口(ModifyAgentInstanceParameters)用于修改智能体实例的参数列表,通常在用户需要配置智能体实例时使用。
|
|
67
|
+
*/
|
|
68
|
+
ModifyAgentInstanceParameters(req: ModifyAgentInstanceParametersRequest, cb?: (error: string, rep: ModifyAgentInstanceParametersResponse) => void): Promise<ModifyAgentInstanceParametersResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* 本接口(DescribeAgentInstances)用于查询智能体实例列表,通常在用户查询所购买的所有智能体列表。
|
|
71
|
+
*/
|
|
72
|
+
DescribeAgentInstances(req: DescribeAgentInstancesRequest, cb?: (error: string, rep: DescribeAgentInstancesResponse) => void): Promise<DescribeAgentInstancesResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* 本接口(DescribeAgents)用于查询智能体列表,通常在用户查询所购买的所有智能体列表。
|
|
75
|
+
*/
|
|
76
|
+
DescribeAgents(req: DescribeAgentsRequest, cb?: (error: string, rep: DescribeAgentsResponse) => void): Promise<DescribeAgentsResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* 本接口(CreateAgentInstance)用于创建一个智能体实例,通常在用户购买一个智能体实例时使用。
|
|
79
|
+
*/
|
|
80
|
+
CreateAgentInstance(req: CreateAgentInstanceRequest, cb?: (error: string, rep: CreateAgentInstanceResponse) => void): Promise<CreateAgentInstanceResponse>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
6
|
+
/*
|
|
7
|
+
* Copyright (c) 2018 Tencent. All Rights Reserved.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing,
|
|
16
|
+
* software distributed under the License is distributed on an
|
|
17
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
18
|
+
* KIND, either express or implied. See the License for the
|
|
19
|
+
* specific language governing permissions and limitations
|
|
20
|
+
* under the License.
|
|
21
|
+
*/
|
|
22
|
+
const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
|
|
23
|
+
/**
|
|
24
|
+
* tdai client
|
|
25
|
+
* @class
|
|
26
|
+
*/
|
|
27
|
+
class Client extends TencentCloudCommon.AbstractClient {
|
|
28
|
+
constructor(clientConfig) {
|
|
29
|
+
super("tdai.tencentcloudapi.com", "2025-07-17", clientConfig);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 本接口(DescribeChatDetail)用于查询对话详情,通常在用户查询会话的历史记录时使用。
|
|
33
|
+
*/
|
|
34
|
+
async DescribeChatDetail(req, cb) {
|
|
35
|
+
return this.request("DescribeChatDetail", req, cb);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 本接口(RemoveChat)用于删除会话,通常在用户删除会话时使用。
|
|
39
|
+
*/
|
|
40
|
+
async RemoveChat(req, cb) {
|
|
41
|
+
return this.request("RemoveChat", req, cb);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* 本接口(IsolateAgentInstance)用于隔离智能体实例,通常在用户需要隔离智能体实例时使用。
|
|
45
|
+
*/
|
|
46
|
+
async IsolateAgentInstance(req, cb) {
|
|
47
|
+
return this.request("IsolateAgentInstance", req, cb);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* 本接口(ContinueAgentWork)用于重启智能体实例的值守任务,通常在用户需要重启时使用。
|
|
51
|
+
*/
|
|
52
|
+
async ContinueAgentWork(req, cb) {
|
|
53
|
+
return this.request("ContinueAgentWork", req, cb);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* 查询智能体值守任务列表
|
|
57
|
+
*/
|
|
58
|
+
async DescribeAgentDutyTasks(req, cb) {
|
|
59
|
+
return this.request("DescribeAgentDutyTasks", req, cb);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* 本接口(PauseAgentWork)用于暂停智能体实例的值守任务,通常在用户需要暂停时使用。
|
|
63
|
+
*/
|
|
64
|
+
async PauseAgentWork(req, cb) {
|
|
65
|
+
return this.request("PauseAgentWork", req, cb);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* 本接口(DescribeChats)用于查询对话列表,通常在用户查询会话列表时使用。
|
|
69
|
+
*/
|
|
70
|
+
async DescribeChats(req, cb) {
|
|
71
|
+
return this.request("DescribeChats", req, cb);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* 本接口(DescribeAgentInstance)用于查询智能体实例详情,通常在用户查询所购买的所有智能体实例详情时使用。
|
|
75
|
+
*/
|
|
76
|
+
async DescribeAgentInstance(req, cb) {
|
|
77
|
+
return this.request("DescribeAgentInstance", req, cb);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* 用于创建一次回话的SSE接口
|
|
81
|
+
*/
|
|
82
|
+
async CreateChatCompletion(req, cb) {
|
|
83
|
+
return this.request("CreateChatCompletion", req, cb);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* 本接口(ModifyChatTitle)用于修改会话标题,通常在用户修改会话标题时使用。
|
|
87
|
+
*/
|
|
88
|
+
async ModifyChatTitle(req, cb) {
|
|
89
|
+
return this.request("ModifyChatTitle", req, cb);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* 查询智能体值守任务详情
|
|
93
|
+
*/
|
|
94
|
+
async DescribeAgentDutyTaskDetail(req, cb) {
|
|
95
|
+
return this.request("DescribeAgentDutyTaskDetail", req, cb);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* 智能体报告地址生成并下载
|
|
99
|
+
*/
|
|
100
|
+
async DescribeReportUrl(req, cb) {
|
|
101
|
+
return this.request("DescribeReportUrl", req, cb);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* 本接口(TerminateAgentInstance)用于下线智能体实例,通常在用户需要下线智能体实例时使用。
|
|
105
|
+
*/
|
|
106
|
+
async TerminateAgentInstance(req, cb) {
|
|
107
|
+
return this.request("TerminateAgentInstance", req, cb);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* 本接口(RecoverAgentInstance)用于解隔离智能体实例,通常在用户需要解隔离智能体实例时使用。
|
|
111
|
+
*/
|
|
112
|
+
async RecoverAgentInstance(req, cb) {
|
|
113
|
+
return this.request("RecoverAgentInstance", req, cb);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* 本接口(ModifyAgentInstanceParameters)用于修改智能体实例的参数列表,通常在用户需要配置智能体实例时使用。
|
|
117
|
+
*/
|
|
118
|
+
async ModifyAgentInstanceParameters(req, cb) {
|
|
119
|
+
return this.request("ModifyAgentInstanceParameters", req, cb);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* 本接口(DescribeAgentInstances)用于查询智能体实例列表,通常在用户查询所购买的所有智能体列表。
|
|
123
|
+
*/
|
|
124
|
+
async DescribeAgentInstances(req, cb) {
|
|
125
|
+
return this.request("DescribeAgentInstances", req, cb);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* 本接口(DescribeAgents)用于查询智能体列表,通常在用户查询所购买的所有智能体列表。
|
|
129
|
+
*/
|
|
130
|
+
async DescribeAgents(req, cb) {
|
|
131
|
+
return this.request("DescribeAgents", req, cb);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* 本接口(CreateAgentInstance)用于创建一个智能体实例,通常在用户购买一个智能体实例时使用。
|
|
135
|
+
*/
|
|
136
|
+
async CreateAgentInstance(req, cb) {
|
|
137
|
+
return this.request("CreateAgentInstance", req, cb);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.Client = Client;
|