tencentcloud-sdk-nodejs-es 4.1.115 → 4.1.116
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/package.json
CHANGED
|
@@ -30,6 +30,18 @@ export interface ChatCompletionsRequest {
|
|
|
30
30
|
* 当 OnlineSearch 为 true 时,指定的搜索引擎,默认为 bing。
|
|
31
31
|
*/
|
|
32
32
|
OnlineSearchOptions?: OnlineSearchOptions;
|
|
33
|
+
/**
|
|
34
|
+
* 可调用的工具列表,当前支持模型:hunyuan-turbo, deepseek-v3。
|
|
35
|
+
*/
|
|
36
|
+
Tools?: Array<Tool>;
|
|
37
|
+
/**
|
|
38
|
+
* 工具使用选项,可选值包括 none、auto、custom。说明:1. 仅对 hunyuan-turbo、deepseek-v3 模型生效。2. none:不调用工具;auto:模型自行选择生成回复或调用工具;custom:强制模型调用指定的工具。3. 未设置时,默认值为auto
|
|
39
|
+
*/
|
|
40
|
+
ToolChoice?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 强制模型调用指定的工具,当参数ToolChoice为custom时,此参数为必填
|
|
43
|
+
*/
|
|
44
|
+
CustomTool?: Tool;
|
|
33
45
|
}
|
|
34
46
|
/**
|
|
35
47
|
* 文档切片用量
|
|
@@ -290,6 +302,19 @@ export interface ChunkDocumentResponse {
|
|
|
290
302
|
*/
|
|
291
303
|
RequestId?: string;
|
|
292
304
|
}
|
|
305
|
+
/**
|
|
306
|
+
* 用户指定模型使用的工具
|
|
307
|
+
*/
|
|
308
|
+
export interface Tool {
|
|
309
|
+
/**
|
|
310
|
+
* 工具类型,当前只支持function
|
|
311
|
+
*/
|
|
312
|
+
Type: string;
|
|
313
|
+
/**
|
|
314
|
+
* 具体要调用的function
|
|
315
|
+
*/
|
|
316
|
+
Function: ToolFunction;
|
|
317
|
+
}
|
|
293
318
|
/**
|
|
294
319
|
* GetDocumentParseResult返回参数结构体
|
|
295
320
|
*/
|
|
@@ -399,6 +424,23 @@ export interface ChunkConfig {
|
|
|
399
424
|
*/
|
|
400
425
|
ChunkOverlap?: number;
|
|
401
426
|
}
|
|
427
|
+
/**
|
|
428
|
+
* function定义
|
|
429
|
+
*/
|
|
430
|
+
export interface ToolFunction {
|
|
431
|
+
/**
|
|
432
|
+
* function名称,只能包含a-z,A-Z,0-9,_或-
|
|
433
|
+
*/
|
|
434
|
+
Name: string;
|
|
435
|
+
/**
|
|
436
|
+
* function参数,一般为json字符串
|
|
437
|
+
*/
|
|
438
|
+
Parameters: string;
|
|
439
|
+
/**
|
|
440
|
+
* function的简单描述
|
|
441
|
+
*/
|
|
442
|
+
Description?: string;
|
|
443
|
+
}
|
|
402
444
|
/**
|
|
403
445
|
* 具体的function调用
|
|
404
446
|
*/
|