tencentcloud-sdk-nodejs-es 4.1.101 → 4.1.115

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-es",
3
- "version": "4.1.101",
3
+ "version": "4.1.115",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -208,12 +208,20 @@ export interface ParseDocumentResponse {
208
208
  */
209
209
  export interface Document {
210
210
  /**
211
- * 文件类型。
212
- 支持的文件类型:PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、IM、PCX、PPM、TIFF、XBM、HEIF、JP2
213
- 支持的文件大小:
214
- - PDF、DOC、DOCX、PPT、PPTX 支持100M
215
- - MD、TXT、XLS、XLSX、CSV 支持10M
216
- - 其他支持20M
211
+ * 支持的文件类型:PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、
212
+ XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、
213
+ IM、PCX、PPM、TIFF、XBM、HEIF、JP2
214
+
215
+ 文档解析支持的文件大小:
216
+ -PDF、DOC、DOCX、PPT、PPTX支持100M
217
+ -MD、TXT、XLS、XLSX、CSV支特10M
218
+ -其他支持20M
219
+
220
+ 文本切片支持的文件大小:
221
+ -PDF最大300M
222
+ -D0CX、D0C、PPT、PPTX最大200M
223
+ -TXT、MD最大10M
224
+ -其他最大20M
217
225
  */
218
226
  FileType: string;
219
227
  /**
@@ -391,6 +399,19 @@ export interface ChunkConfig {
391
399
  */
392
400
  ChunkOverlap?: number;
393
401
  }
402
+ /**
403
+ * 具体的function调用
404
+ */
405
+ export interface ToolCallFunction {
406
+ /**
407
+ * function名称
408
+ */
409
+ Name?: string;
410
+ /**
411
+ * function参数,一般为json字符串
412
+ */
413
+ Arguments?: string;
414
+ }
394
415
  /**
395
416
  * 会话内容,按对话时间从旧到新在数组中排列,长度受模型窗口大小限制。
396
417
  */
@@ -407,18 +428,30 @@ export interface OutputMessage {
407
428
  * 推理内容
408
429
  */
409
430
  ReasoningContent?: string;
431
+ /**
432
+ * 模型生成的工具调用
433
+ */
434
+ ToolCalls?: Array<ToolCall>;
410
435
  }
411
436
  /**
412
437
  * 文档信息
413
438
  */
414
439
  export interface ParseDocument {
415
440
  /**
416
- * 文件类型。
417
- 支持的文件类型:PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、IM、PCX、PPM、TIFF、XBM、HEIF、JP2
418
- 支持的文件大小:
419
- - PDF、DOC、DOCX、PPT、PPTX 支持100M
420
- - MD、TXT、XLS、XLSX、CSV 支持10M
421
- - 其他支持20M
441
+ * 支持的文件类型:PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、
442
+ XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、
443
+ IM、PCX、PPM、TIFF、XBM、HEIF、JP2
444
+
445
+ 文档解析支持的文件大小:
446
+ -PDF、DOC、DOCX、PPT、PPTX支持100M
447
+ -MD、TXT、XLS、XLSX、CSV支特10M
448
+ -其他支持20M
449
+
450
+ 文本切片支持的文件大小:
451
+ -PDF最大300M
452
+ -D0CX、D0C、PPT、PPTX最大200M
453
+ -TXT、MD最大10M
454
+ -其他最大20M
422
455
  */
423
456
  FileType: string;
424
457
  /**
@@ -429,6 +462,7 @@ export interface ParseDocument {
429
462
  * 文件的 base64 值,携带 MineType前缀信息。编码后的后的文件不超过 10M。
430
463
  支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过3秒。
431
464
  支持的图片像素:单边介于20-10000px之间。
465
+ 文件的 FileUrl、FileContent必须提供一个,如果都提供只使用 FileUrl。
432
466
  */
433
467
  FileContent?: string;
434
468
  /**
@@ -478,6 +512,27 @@ export interface ChunkDocumentAsyncResponse {
478
512
  */
479
513
  RequestId?: string;
480
514
  }
515
+ /**
516
+ * 模型生成的工具调用
517
+ */
518
+ export interface ToolCall {
519
+ /**
520
+ * 工具调用id
521
+ */
522
+ Id?: string;
523
+ /**
524
+ * 工具调用类型,当前只支持function
525
+ */
526
+ Type?: string;
527
+ /**
528
+ * 具体的function调用
529
+ */
530
+ Function?: ToolCallFunction;
531
+ /**
532
+ * 索引值
533
+ */
534
+ Index?: number;
535
+ }
481
536
  /**
482
537
  * 联网搜索选项。
483
538
  */
@@ -587,13 +642,21 @@ export interface ChunkDocument {
587
642
  */
588
643
  export interface Message {
589
644
  /**
590
- * 角色, system', ‘user','assistant'或者'tool', 在message中, 除了system,其他必须是user与assistant交替(一问一答)
645
+ * 角色,可选值包括 systemuserassistanttool
591
646
  */
592
647
  Role?: string;
593
648
  /**
594
649
  * 具体文本内容
595
650
  */
596
651
  Content?: string;
652
+ /**
653
+ * 当role为tool时传入,标识具体的函数调用
654
+ */
655
+ ToolCallId?: string;
656
+ /**
657
+ * 模型生成的工具调用
658
+ */
659
+ ToolCalls?: Array<ToolCall>;
597
660
  }
598
661
  /**
599
662
  * ChatCompletions返回参数结构体