@alicloud/dianjin20240628 1.0.1 → 1.1.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 CHANGED
@@ -796,6 +796,106 @@ export declare class GetFilterDocumentListResponse extends $tea.Model {
796
796
  [key: string]: any;
797
797
  });
798
798
  }
799
+ export declare class GetHistoryListByBizTypeRequest extends $tea.Model {
800
+ /**
801
+ * @remarks
802
+ * This parameter is required.
803
+ *
804
+ * @example
805
+ * GysYBsxx
806
+ */
807
+ bizId?: string;
808
+ /**
809
+ * @remarks
810
+ * This parameter is required.
811
+ *
812
+ * @example
813
+ * LibraryChat
814
+ */
815
+ bizType?: string;
816
+ /**
817
+ * @example
818
+ * 1
819
+ */
820
+ page?: number;
821
+ /**
822
+ * @example
823
+ * 10
824
+ */
825
+ pageSize?: number;
826
+ static names(): {
827
+ [key: string]: string;
828
+ };
829
+ static types(): {
830
+ [key: string]: any;
831
+ };
832
+ constructor(map?: {
833
+ [key: string]: any;
834
+ });
835
+ }
836
+ export declare class GetHistoryListByBizTypeResponseBody extends $tea.Model {
837
+ /**
838
+ * @example
839
+ * null
840
+ */
841
+ cost?: number;
842
+ data?: GetHistoryListByBizTypeResponseBodyData;
843
+ /**
844
+ * @example
845
+ * null
846
+ */
847
+ dataType?: string;
848
+ /**
849
+ * @example
850
+ * 0
851
+ */
852
+ errCode?: string;
853
+ /**
854
+ * @example
855
+ * ok
856
+ */
857
+ message?: string;
858
+ /**
859
+ * @example
860
+ * 9DF9B3F3-9FFE-52CB-A8DC-F7BD5F842F0E
861
+ */
862
+ requestId?: string;
863
+ /**
864
+ * @example
865
+ * true
866
+ */
867
+ success?: boolean;
868
+ /**
869
+ * @example
870
+ * 2024-01-01 00:00:00
871
+ */
872
+ time?: string;
873
+ static names(): {
874
+ [key: string]: string;
875
+ };
876
+ static types(): {
877
+ [key: string]: any;
878
+ };
879
+ constructor(map?: {
880
+ [key: string]: any;
881
+ });
882
+ }
883
+ export declare class GetHistoryListByBizTypeResponse extends $tea.Model {
884
+ headers?: {
885
+ [key: string]: string;
886
+ };
887
+ statusCode?: number;
888
+ body?: GetHistoryListByBizTypeResponseBody;
889
+ static names(): {
890
+ [key: string]: string;
891
+ };
892
+ static types(): {
893
+ [key: string]: any;
894
+ };
895
+ constructor(map?: {
896
+ [key: string]: any;
897
+ });
898
+ }
799
899
  export declare class GetLibraryRequest extends $tea.Model {
800
900
  /**
801
901
  * @remarks
@@ -1500,6 +1600,159 @@ export declare class RunChatResultGenerationResponse extends $tea.Model {
1500
1600
  [key: string]: any;
1501
1601
  });
1502
1602
  }
1603
+ export declare class RunLibraryChatGenerationRequest extends $tea.Model {
1604
+ docIdList?: string[];
1605
+ /**
1606
+ * @example
1607
+ * false
1608
+ */
1609
+ enableFollowUp?: boolean;
1610
+ /**
1611
+ * @example
1612
+ * false
1613
+ */
1614
+ enableMultiQuery?: boolean;
1615
+ /**
1616
+ * @example
1617
+ * false
1618
+ */
1619
+ enableOpenQa?: boolean;
1620
+ /**
1621
+ * @example
1622
+ * qwen-max
1623
+ */
1624
+ followUpLlm?: string;
1625
+ /**
1626
+ * @remarks
1627
+ * This parameter is required.
1628
+ *
1629
+ * @example
1630
+ * 3akzl28vap
1631
+ */
1632
+ libraryId?: string;
1633
+ /**
1634
+ * @remarks
1635
+ * This parameter is required.
1636
+ *
1637
+ * @example
1638
+ * qwen-max
1639
+ */
1640
+ llmType?: string;
1641
+ /**
1642
+ * @example
1643
+ * qwen-max
1644
+ */
1645
+ multiQueryLlm?: string;
1646
+ /**
1647
+ * @remarks
1648
+ * This parameter is required.
1649
+ */
1650
+ query?: string;
1651
+ queryCriteria?: RunLibraryChatGenerationRequestQueryCriteria;
1652
+ /**
1653
+ * @example
1654
+ * linear
1655
+ */
1656
+ rerankType?: string;
1657
+ /**
1658
+ * @remarks
1659
+ * sessionId
1660
+ *
1661
+ * @example
1662
+ * null
1663
+ */
1664
+ sessionId?: string;
1665
+ /**
1666
+ * @example
1667
+ * false
1668
+ */
1669
+ stream?: boolean;
1670
+ subQueryList?: string[];
1671
+ textSearchParameter?: RunLibraryChatGenerationRequestTextSearchParameter;
1672
+ /**
1673
+ * @example
1674
+ * 1
1675
+ */
1676
+ topK?: number;
1677
+ vectorSearchParameter?: RunLibraryChatGenerationRequestVectorSearchParameter;
1678
+ /**
1679
+ * @example
1680
+ * false
1681
+ */
1682
+ withDocumentReference?: boolean;
1683
+ static names(): {
1684
+ [key: string]: string;
1685
+ };
1686
+ static types(): {
1687
+ [key: string]: any;
1688
+ };
1689
+ constructor(map?: {
1690
+ [key: string]: any;
1691
+ });
1692
+ }
1693
+ export declare class RunLibraryChatGenerationResponseBody extends $tea.Model {
1694
+ /**
1695
+ * @example
1696
+ * null
1697
+ */
1698
+ cost?: number;
1699
+ data?: any;
1700
+ /**
1701
+ * @example
1702
+ * null
1703
+ */
1704
+ dataType?: string;
1705
+ /**
1706
+ * @example
1707
+ * 0
1708
+ */
1709
+ errCode?: string;
1710
+ /**
1711
+ * @example
1712
+ * ok
1713
+ */
1714
+ message?: string;
1715
+ /**
1716
+ * @example
1717
+ * 5E3FBAF1-17AF-53B7-AF0A-CDCEEB6DE658
1718
+ */
1719
+ requestId?: string;
1720
+ /**
1721
+ * @example
1722
+ * true
1723
+ */
1724
+ success?: boolean;
1725
+ /**
1726
+ * @example
1727
+ * 2024-04-24 11:54:34
1728
+ */
1729
+ time?: string;
1730
+ static names(): {
1731
+ [key: string]: string;
1732
+ };
1733
+ static types(): {
1734
+ [key: string]: any;
1735
+ };
1736
+ constructor(map?: {
1737
+ [key: string]: any;
1738
+ });
1739
+ }
1740
+ export declare class RunLibraryChatGenerationResponse extends $tea.Model {
1741
+ headers?: {
1742
+ [key: string]: string;
1743
+ };
1744
+ statusCode?: number;
1745
+ body?: RunLibraryChatGenerationResponseBody;
1746
+ static names(): {
1747
+ [key: string]: string;
1748
+ };
1749
+ static types(): {
1750
+ [key: string]: any;
1751
+ };
1752
+ constructor(map?: {
1753
+ [key: string]: any;
1754
+ });
1755
+ }
1503
1756
  export declare class UpdateDocumentRequest extends $tea.Model {
1504
1757
  /**
1505
1758
  * @remarks
@@ -2488,6 +2741,92 @@ export declare class GetFilterDocumentListResponseBodyData extends $tea.Model {
2488
2741
  [key: string]: any;
2489
2742
  });
2490
2743
  }
2744
+ export declare class GetHistoryListByBizTypeResponseBodyDataRecords extends $tea.Model {
2745
+ /**
2746
+ * @example
2747
+ * GysYBsxx
2748
+ */
2749
+ bizId?: string;
2750
+ /**
2751
+ * @example
2752
+ * LibraryChat
2753
+ */
2754
+ bizType?: string;
2755
+ /**
2756
+ * @example
2757
+ * null
2758
+ */
2759
+ extraMessage?: any;
2760
+ /**
2761
+ * @example
2762
+ * 2024-01-01 00:00:00
2763
+ */
2764
+ gmtCreate?: string;
2765
+ /**
2766
+ * @example
2767
+ * 2024-01-01 00:00:00
2768
+ */
2769
+ gmtModified?: string;
2770
+ /**
2771
+ * @example
2772
+ * 210
2773
+ */
2774
+ id?: number;
2775
+ llmAnswer?: string;
2776
+ llmPrompt?: string;
2777
+ /**
2778
+ * @example
2779
+ * qwen-max
2780
+ */
2781
+ llmType?: string;
2782
+ /**
2783
+ * @example
2784
+ * null
2785
+ */
2786
+ sessionId?: string;
2787
+ userQuery?: string;
2788
+ static names(): {
2789
+ [key: string]: string;
2790
+ };
2791
+ static types(): {
2792
+ [key: string]: any;
2793
+ };
2794
+ constructor(map?: {
2795
+ [key: string]: any;
2796
+ });
2797
+ }
2798
+ export declare class GetHistoryListByBizTypeResponseBodyData extends $tea.Model {
2799
+ /**
2800
+ * @example
2801
+ * 1
2802
+ */
2803
+ currentPage?: number;
2804
+ /**
2805
+ * @example
2806
+ * 10
2807
+ */
2808
+ pageSize?: number;
2809
+ records?: GetHistoryListByBizTypeResponseBodyDataRecords[];
2810
+ /**
2811
+ * @example
2812
+ * 10
2813
+ */
2814
+ totalPages?: number;
2815
+ /**
2816
+ * @example
2817
+ * 100
2818
+ */
2819
+ totalRecords?: number;
2820
+ static names(): {
2821
+ [key: string]: string;
2822
+ };
2823
+ static types(): {
2824
+ [key: string]: any;
2825
+ };
2826
+ constructor(map?: {
2827
+ [key: string]: any;
2828
+ });
2829
+ }
2491
2830
  export declare class GetLibraryResponseBodyDataIndexSettingChunkStrategy extends $tea.Model {
2492
2831
  /**
2493
2832
  * @example
@@ -3831,6 +4170,110 @@ export declare class RunChatResultGenerationResponseBodyUsage extends $tea.Model
3831
4170
  [key: string]: any;
3832
4171
  });
3833
4172
  }
4173
+ export declare class RunLibraryChatGenerationRequestQueryCriteriaAnd extends $tea.Model {
4174
+ /**
4175
+ * @example
4176
+ * 0.5
4177
+ */
4178
+ boost?: number;
4179
+ /**
4180
+ * @example
4181
+ * city
4182
+ */
4183
+ key?: string;
4184
+ /**
4185
+ * @example
4186
+ * eq
4187
+ */
4188
+ operator?: string;
4189
+ value?: string;
4190
+ static names(): {
4191
+ [key: string]: string;
4192
+ };
4193
+ static types(): {
4194
+ [key: string]: any;
4195
+ };
4196
+ constructor(map?: {
4197
+ [key: string]: any;
4198
+ });
4199
+ }
4200
+ export declare class RunLibraryChatGenerationRequestQueryCriteriaOr extends $tea.Model {
4201
+ /**
4202
+ * @example
4203
+ * 0.5
4204
+ */
4205
+ boost?: number;
4206
+ /**
4207
+ * @example
4208
+ * city
4209
+ */
4210
+ key?: string;
4211
+ /**
4212
+ * @example
4213
+ * eq
4214
+ */
4215
+ operator?: string;
4216
+ value?: string;
4217
+ static names(): {
4218
+ [key: string]: string;
4219
+ };
4220
+ static types(): {
4221
+ [key: string]: any;
4222
+ };
4223
+ constructor(map?: {
4224
+ [key: string]: any;
4225
+ });
4226
+ }
4227
+ export declare class RunLibraryChatGenerationRequestQueryCriteria extends $tea.Model {
4228
+ and?: RunLibraryChatGenerationRequestQueryCriteriaAnd[];
4229
+ or?: RunLibraryChatGenerationRequestQueryCriteriaOr[];
4230
+ static names(): {
4231
+ [key: string]: string;
4232
+ };
4233
+ static types(): {
4234
+ [key: string]: any;
4235
+ };
4236
+ constructor(map?: {
4237
+ [key: string]: any;
4238
+ });
4239
+ }
4240
+ export declare class RunLibraryChatGenerationRequestTextSearchParameter extends $tea.Model {
4241
+ /**
4242
+ * @example
4243
+ * 10
4244
+ */
4245
+ limit?: number;
4246
+ /**
4247
+ * @example
4248
+ * IkMaxWord
4249
+ */
4250
+ searchAnalyzerType?: string;
4251
+ static names(): {
4252
+ [key: string]: string;
4253
+ };
4254
+ static types(): {
4255
+ [key: string]: any;
4256
+ };
4257
+ constructor(map?: {
4258
+ [key: string]: any;
4259
+ });
4260
+ }
4261
+ export declare class RunLibraryChatGenerationRequestVectorSearchParameter extends $tea.Model {
4262
+ /**
4263
+ * @example
4264
+ * 10
4265
+ */
4266
+ limit?: number;
4267
+ static names(): {
4268
+ [key: string]: string;
4269
+ };
4270
+ static types(): {
4271
+ [key: string]: any;
4272
+ };
4273
+ constructor(map?: {
4274
+ [key: string]: any;
4275
+ });
4276
+ }
3834
4277
  export declare class UpdateLibraryRequestIndexSettingChunkStrategy extends $tea.Model {
3835
4278
  /**
3836
4279
  * @example
@@ -4237,6 +4680,24 @@ export default class Client extends OpenApi {
4237
4680
  * @returns GetFilterDocumentListResponse
4238
4681
  */
4239
4682
  getFilterDocumentList(workspaceId: string, request: GetFilterDocumentListRequest): Promise<GetFilterDocumentListResponse>;
4683
+ /**
4684
+ * 分页查询文档库列表
4685
+ *
4686
+ * @param request - GetHistoryListByBizTypeRequest
4687
+ * @param headers - map
4688
+ * @param runtime - runtime options for this request RuntimeOptions
4689
+ * @returns GetHistoryListByBizTypeResponse
4690
+ */
4691
+ getHistoryListByBizTypeWithOptions(workspaceId: string, request: GetHistoryListByBizTypeRequest, headers: {
4692
+ [key: string]: string;
4693
+ }, runtime: $Util.RuntimeOptions): Promise<GetHistoryListByBizTypeResponse>;
4694
+ /**
4695
+ * 分页查询文档库列表
4696
+ *
4697
+ * @param request - GetHistoryListByBizTypeRequest
4698
+ * @returns GetHistoryListByBizTypeResponse
4699
+ */
4700
+ getHistoryListByBizType(workspaceId: string, request: GetHistoryListByBizTypeRequest): Promise<GetHistoryListByBizTypeResponse>;
4240
4701
  /**
4241
4702
  * 获取文档库配置详情
4242
4703
  *
@@ -4381,6 +4842,24 @@ export default class Client extends OpenApi {
4381
4842
  * @returns RunChatResultGenerationResponse
4382
4843
  */
4383
4844
  runChatResultGeneration(workspaceId: string, request: RunChatResultGenerationRequest): Promise<RunChatResultGenerationResponse>;
4845
+ /**
4846
+ * 获取生成式对话结果
4847
+ *
4848
+ * @param request - RunLibraryChatGenerationRequest
4849
+ * @param headers - map
4850
+ * @param runtime - runtime options for this request RuntimeOptions
4851
+ * @returns RunLibraryChatGenerationResponse
4852
+ */
4853
+ runLibraryChatGenerationWithOptions(workspaceId: string, request: RunLibraryChatGenerationRequest, headers: {
4854
+ [key: string]: string;
4855
+ }, runtime: $Util.RuntimeOptions): Promise<RunLibraryChatGenerationResponse>;
4856
+ /**
4857
+ * 获取生成式对话结果
4858
+ *
4859
+ * @param request - RunLibraryChatGenerationRequest
4860
+ * @returns RunLibraryChatGenerationResponse
4861
+ */
4862
+ runLibraryChatGeneration(workspaceId: string, request: RunLibraryChatGenerationRequest): Promise<RunLibraryChatGenerationResponse>;
4384
4863
  /**
4385
4864
  * 更新文档
4386
4865
  *