@alicloud/bailian20231229 2.0.0 → 2.0.1
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 +103 -10
- package/dist/client.js +261 -50
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +347 -50
package/dist/client.d.ts
CHANGED
|
@@ -549,6 +549,7 @@ export declare class GetIndexJobStatusResponseBodyDataDocuments extends $dara.Mo
|
|
|
549
549
|
* The name of the document.
|
|
550
550
|
*/
|
|
551
551
|
docName?: string;
|
|
552
|
+
gmtModified?: number;
|
|
552
553
|
/**
|
|
553
554
|
* @remarks
|
|
554
555
|
* The error message.
|
|
@@ -979,6 +980,7 @@ export declare class ListIndexDocumentsResponseBodyDataDocuments extends $dara.M
|
|
|
979
980
|
* pdf
|
|
980
981
|
*/
|
|
981
982
|
documentType?: string;
|
|
983
|
+
gmtModified?: number;
|
|
982
984
|
/**
|
|
983
985
|
* @remarks
|
|
984
986
|
* The primary key ID of the document.
|
|
@@ -1328,18 +1330,36 @@ export declare class ListMemoryNodesResponseBodyMemoryNodes extends $dara.Model
|
|
|
1328
1330
|
});
|
|
1329
1331
|
}
|
|
1330
1332
|
export declare class ListPromptTemplatesResponseBodyPromptTemplates extends $dara.Model {
|
|
1333
|
+
/**
|
|
1334
|
+
* @remarks
|
|
1335
|
+
* The template content
|
|
1336
|
+
*/
|
|
1331
1337
|
content?: string;
|
|
1338
|
+
/**
|
|
1339
|
+
* @remarks
|
|
1340
|
+
* The template name.
|
|
1341
|
+
*/
|
|
1332
1342
|
name?: string;
|
|
1333
1343
|
/**
|
|
1344
|
+
* @remarks
|
|
1345
|
+
* The template ID.
|
|
1346
|
+
*
|
|
1334
1347
|
* @example
|
|
1335
1348
|
* d6935b7efbe34d11b13df9307151cf8c
|
|
1336
1349
|
*/
|
|
1337
1350
|
promptTemplateId?: string;
|
|
1338
1351
|
/**
|
|
1352
|
+
* @remarks
|
|
1353
|
+
* The template type.
|
|
1354
|
+
*
|
|
1339
1355
|
* @example
|
|
1340
1356
|
* "System"
|
|
1341
1357
|
*/
|
|
1342
1358
|
type?: string;
|
|
1359
|
+
/**
|
|
1360
|
+
* @remarks
|
|
1361
|
+
* The variables of the template.
|
|
1362
|
+
*/
|
|
1343
1363
|
variables?: string[];
|
|
1344
1364
|
static names(): {
|
|
1345
1365
|
[key: string]: string;
|
|
@@ -3474,6 +3494,9 @@ export declare class DeleteMemoryNodeResponse extends $dara.Model {
|
|
|
3474
3494
|
}
|
|
3475
3495
|
export declare class DeletePromptTemplateResponseBody extends $dara.Model {
|
|
3476
3496
|
/**
|
|
3497
|
+
* @remarks
|
|
3498
|
+
* The request ID.
|
|
3499
|
+
*
|
|
3477
3500
|
* @example
|
|
3478
3501
|
* FE9B6CBF-47E6-5D76-9C5D-B814DD5ABxxx
|
|
3479
3502
|
*/
|
|
@@ -3804,24 +3827,44 @@ export declare class GetMemoryNodeResponse extends $dara.Model {
|
|
|
3804
3827
|
});
|
|
3805
3828
|
}
|
|
3806
3829
|
export declare class GetPromptTemplateResponseBody extends $dara.Model {
|
|
3830
|
+
/**
|
|
3831
|
+
* @remarks
|
|
3832
|
+
* The template content.
|
|
3833
|
+
*/
|
|
3807
3834
|
content?: string;
|
|
3835
|
+
/**
|
|
3836
|
+
* @remarks
|
|
3837
|
+
* The template name.
|
|
3838
|
+
*/
|
|
3808
3839
|
name?: string;
|
|
3809
3840
|
/**
|
|
3841
|
+
* @remarks
|
|
3842
|
+
* The template ID.
|
|
3843
|
+
*
|
|
3810
3844
|
* @example
|
|
3811
3845
|
* 6e49109bfeb94a39bb268f4e483ccxxx
|
|
3812
3846
|
*/
|
|
3813
3847
|
promptTemplateId?: string;
|
|
3814
3848
|
/**
|
|
3849
|
+
* @remarks
|
|
3850
|
+
* The request ID.
|
|
3851
|
+
*
|
|
3815
3852
|
* @example
|
|
3816
3853
|
* 8C56C7AF-6573-19CE-B018-E05E1EDCF4C5
|
|
3817
3854
|
*/
|
|
3818
3855
|
requestId?: string;
|
|
3819
3856
|
/**
|
|
3857
|
+
* @remarks
|
|
3858
|
+
* The variables of the template.
|
|
3859
|
+
*
|
|
3820
3860
|
* @example
|
|
3821
3861
|
* ["theme"]
|
|
3822
3862
|
*/
|
|
3823
3863
|
variables?: string[];
|
|
3824
3864
|
/**
|
|
3865
|
+
* @remarks
|
|
3866
|
+
* The workspace ID.
|
|
3867
|
+
*
|
|
3825
3868
|
* @example
|
|
3826
3869
|
* llm-us9hjmt32nysdxxx
|
|
3827
3870
|
*/
|
|
@@ -4601,17 +4644,30 @@ export declare class ListMemoryNodesResponse extends $dara.Model {
|
|
|
4601
4644
|
}
|
|
4602
4645
|
export declare class ListPromptTemplatesRequest extends $dara.Model {
|
|
4603
4646
|
/**
|
|
4647
|
+
* @remarks
|
|
4648
|
+
* The maximum number of returned entries.
|
|
4649
|
+
*
|
|
4604
4650
|
* @example
|
|
4605
4651
|
* 10
|
|
4606
4652
|
*/
|
|
4607
4653
|
maxResults?: number;
|
|
4654
|
+
/**
|
|
4655
|
+
* @remarks
|
|
4656
|
+
* The keyword that is used to search for templates.
|
|
4657
|
+
*/
|
|
4608
4658
|
name?: string;
|
|
4609
4659
|
/**
|
|
4660
|
+
* @remarks
|
|
4661
|
+
* The token that determines the start position of the query. Set this parameter to the value of the NextToken parameter that is returned from the last call.
|
|
4662
|
+
*
|
|
4610
4663
|
* @example
|
|
4611
4664
|
* dc270401186b433f975d7e1faaa34e0e
|
|
4612
4665
|
*/
|
|
4613
4666
|
nextToken?: string;
|
|
4614
4667
|
/**
|
|
4668
|
+
* @remarks
|
|
4669
|
+
* The type of the template. Valid values: · System · Custom
|
|
4670
|
+
*
|
|
4615
4671
|
* @example
|
|
4616
4672
|
* System
|
|
4617
4673
|
*/
|
|
@@ -4629,27 +4685,46 @@ export declare class ListPromptTemplatesRequest extends $dara.Model {
|
|
|
4629
4685
|
}
|
|
4630
4686
|
export declare class ListPromptTemplatesResponseBody extends $dara.Model {
|
|
4631
4687
|
/**
|
|
4688
|
+
* @remarks
|
|
4689
|
+
* The maximum number of returned entries.
|
|
4690
|
+
*
|
|
4632
4691
|
* @example
|
|
4633
4692
|
* 10
|
|
4634
4693
|
*/
|
|
4635
4694
|
maxResults?: number;
|
|
4636
4695
|
/**
|
|
4696
|
+
* @remarks
|
|
4697
|
+
* The token that determines the start position of the next query.
|
|
4698
|
+
*
|
|
4637
4699
|
* @example
|
|
4638
4700
|
* dc270401186b433f975d7e1faaa34e0e
|
|
4639
4701
|
*/
|
|
4640
4702
|
nextToken?: string;
|
|
4703
|
+
/**
|
|
4704
|
+
* @remarks
|
|
4705
|
+
* The templates.
|
|
4706
|
+
*/
|
|
4641
4707
|
promptTemplates?: ListPromptTemplatesResponseBodyPromptTemplates[];
|
|
4642
4708
|
/**
|
|
4709
|
+
* @remarks
|
|
4710
|
+
* The request ID.
|
|
4711
|
+
*
|
|
4643
4712
|
* @example
|
|
4644
4713
|
* FE9B6CBF-47E6-5D76-9C5D-B814DD5AB071
|
|
4645
4714
|
*/
|
|
4646
4715
|
requestId?: string;
|
|
4647
4716
|
/**
|
|
4717
|
+
* @remarks
|
|
4718
|
+
* The total number of entries returned.
|
|
4719
|
+
*
|
|
4648
4720
|
* @example
|
|
4649
4721
|
* 15
|
|
4650
4722
|
*/
|
|
4651
4723
|
totalCount?: number;
|
|
4652
4724
|
/**
|
|
4725
|
+
* @remarks
|
|
4726
|
+
* The workspace ID.
|
|
4727
|
+
*
|
|
4653
4728
|
* @example
|
|
4654
4729
|
* llm-us9hjmt32nysdxxx
|
|
4655
4730
|
*/
|
|
@@ -5649,7 +5724,15 @@ export declare class UpdateMemoryNodeResponse extends $dara.Model {
|
|
|
5649
5724
|
});
|
|
5650
5725
|
}
|
|
5651
5726
|
export declare class UpdatePromptTemplateRequest extends $dara.Model {
|
|
5727
|
+
/**
|
|
5728
|
+
* @remarks
|
|
5729
|
+
* The template content.
|
|
5730
|
+
*/
|
|
5652
5731
|
content?: string;
|
|
5732
|
+
/**
|
|
5733
|
+
* @remarks
|
|
5734
|
+
* The template name.
|
|
5735
|
+
*/
|
|
5653
5736
|
name?: string;
|
|
5654
5737
|
static names(): {
|
|
5655
5738
|
[key: string]: string;
|
|
@@ -5664,6 +5747,9 @@ export declare class UpdatePromptTemplateRequest extends $dara.Model {
|
|
|
5664
5747
|
}
|
|
5665
5748
|
export declare class UpdatePromptTemplateResponseBody extends $dara.Model {
|
|
5666
5749
|
/**
|
|
5750
|
+
* @remarks
|
|
5751
|
+
* The request ID.
|
|
5752
|
+
*
|
|
5667
5753
|
* @example
|
|
5668
5754
|
* FE9B6CBF-47E6-5D76-9C5D-B814DD5ABxxx
|
|
5669
5755
|
*/
|
|
@@ -5702,6 +5788,8 @@ export default class Client extends OpenApi {
|
|
|
5702
5788
|
[key: string]: string;
|
|
5703
5789
|
}, endpoint: string): string;
|
|
5704
5790
|
/**
|
|
5791
|
+
* 添加类目
|
|
5792
|
+
*
|
|
5705
5793
|
* @param request - AddCategoryRequest
|
|
5706
5794
|
* @param headers - map
|
|
5707
5795
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -5711,6 +5799,8 @@ export default class Client extends OpenApi {
|
|
|
5711
5799
|
[key: string]: string;
|
|
5712
5800
|
}, runtime: $dara.RuntimeOptions): Promise<AddCategoryResponse>;
|
|
5713
5801
|
/**
|
|
5802
|
+
* 添加类目
|
|
5803
|
+
*
|
|
5714
5804
|
* @param request - AddCategoryRequest
|
|
5715
5805
|
* @returns AddCategoryResponse
|
|
5716
5806
|
*/
|
|
@@ -5860,7 +5950,7 @@ export default class Client extends OpenApi {
|
|
|
5860
5950
|
*/
|
|
5861
5951
|
createMemoryNode(workspaceId: string, memoryId: string, request: CreateMemoryNodeRequest): Promise<CreateMemoryNodeResponse>;
|
|
5862
5952
|
/**
|
|
5863
|
-
*
|
|
5953
|
+
* Creates a prompt template.
|
|
5864
5954
|
*
|
|
5865
5955
|
* @param request - CreatePromptTemplateRequest
|
|
5866
5956
|
* @param headers - map
|
|
@@ -5871,7 +5961,7 @@ export default class Client extends OpenApi {
|
|
|
5871
5961
|
[key: string]: string;
|
|
5872
5962
|
}, runtime: $dara.RuntimeOptions): Promise<CreatePromptTemplateResponse>;
|
|
5873
5963
|
/**
|
|
5874
|
-
*
|
|
5964
|
+
* Creates a prompt template.
|
|
5875
5965
|
*
|
|
5876
5966
|
* @param request - CreatePromptTemplateRequest
|
|
5877
5967
|
* @returns CreatePromptTemplateResponse
|
|
@@ -5893,6 +5983,8 @@ export default class Client extends OpenApi {
|
|
|
5893
5983
|
*/
|
|
5894
5984
|
deleteAgent(workspaceId: string, appCode: string): Promise<DeleteAgentResponse>;
|
|
5895
5985
|
/**
|
|
5986
|
+
* 删除类目
|
|
5987
|
+
*
|
|
5896
5988
|
* @param headers - map
|
|
5897
5989
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
5898
5990
|
* @returns DeleteCategoryResponse
|
|
@@ -5901,6 +5993,7 @@ export default class Client extends OpenApi {
|
|
|
5901
5993
|
[key: string]: string;
|
|
5902
5994
|
}, runtime: $dara.RuntimeOptions): Promise<DeleteCategoryResponse>;
|
|
5903
5995
|
/**
|
|
5996
|
+
* 删除类目
|
|
5904
5997
|
* @returns DeleteCategoryResponse
|
|
5905
5998
|
*/
|
|
5906
5999
|
deleteCategory(CategoryId: string, WorkspaceId: string): Promise<DeleteCategoryResponse>;
|
|
@@ -6014,7 +6107,7 @@ export default class Client extends OpenApi {
|
|
|
6014
6107
|
*/
|
|
6015
6108
|
deleteMemoryNode(workspaceId: string, memoryId: string, memoryNodeId: string): Promise<DeleteMemoryNodeResponse>;
|
|
6016
6109
|
/**
|
|
6017
|
-
*
|
|
6110
|
+
* Deletes a prompt template based on the template ID.
|
|
6018
6111
|
*
|
|
6019
6112
|
* @param headers - map
|
|
6020
6113
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6024,7 +6117,7 @@ export default class Client extends OpenApi {
|
|
|
6024
6117
|
[key: string]: string;
|
|
6025
6118
|
}, runtime: $dara.RuntimeOptions): Promise<DeletePromptTemplateResponse>;
|
|
6026
6119
|
/**
|
|
6027
|
-
*
|
|
6120
|
+
* Deletes a prompt template based on the template ID.
|
|
6028
6121
|
* @returns DeletePromptTemplateResponse
|
|
6029
6122
|
*/
|
|
6030
6123
|
deletePromptTemplate(workspaceId: string, promptTemplateId: string): Promise<DeletePromptTemplateResponse>;
|
|
@@ -6114,7 +6207,7 @@ export default class Client extends OpenApi {
|
|
|
6114
6207
|
*/
|
|
6115
6208
|
getMemoryNode(workspaceId: string, memoryId: string, memoryNodeId: string): Promise<GetMemoryNodeResponse>;
|
|
6116
6209
|
/**
|
|
6117
|
-
*
|
|
6210
|
+
* Obtains a prompt template based on the template ID.
|
|
6118
6211
|
*
|
|
6119
6212
|
* @param headers - map
|
|
6120
6213
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6124,7 +6217,7 @@ export default class Client extends OpenApi {
|
|
|
6124
6217
|
[key: string]: string;
|
|
6125
6218
|
}, runtime: $dara.RuntimeOptions): Promise<GetPromptTemplateResponse>;
|
|
6126
6219
|
/**
|
|
6127
|
-
*
|
|
6220
|
+
* Obtains a prompt template based on the template ID.
|
|
6128
6221
|
* @returns GetPromptTemplateResponse
|
|
6129
6222
|
*/
|
|
6130
6223
|
getPromptTemplate(workspaceId: string, promptTemplateId: string): Promise<GetPromptTemplateResponse>;
|
|
@@ -6292,7 +6385,7 @@ export default class Client extends OpenApi {
|
|
|
6292
6385
|
*/
|
|
6293
6386
|
listMemoryNodes(workspaceId: string, memoryId: string, request: ListMemoryNodesRequest): Promise<ListMemoryNodesResponse>;
|
|
6294
6387
|
/**
|
|
6295
|
-
*
|
|
6388
|
+
* Obtains a list of prompt templates.
|
|
6296
6389
|
*
|
|
6297
6390
|
* @param request - ListPromptTemplatesRequest
|
|
6298
6391
|
* @param headers - map
|
|
@@ -6303,7 +6396,7 @@ export default class Client extends OpenApi {
|
|
|
6303
6396
|
[key: string]: string;
|
|
6304
6397
|
}, runtime: $dara.RuntimeOptions): Promise<ListPromptTemplatesResponse>;
|
|
6305
6398
|
/**
|
|
6306
|
-
*
|
|
6399
|
+
* Obtains a list of prompt templates.
|
|
6307
6400
|
*
|
|
6308
6401
|
* @param request - ListPromptTemplatesRequest
|
|
6309
6402
|
* @returns ListPromptTemplatesResponse
|
|
@@ -6506,7 +6599,7 @@ export default class Client extends OpenApi {
|
|
|
6506
6599
|
*/
|
|
6507
6600
|
updateMemoryNode(workspaceId: string, memoryId: string, memoryNodeId: string, request: UpdateMemoryNodeRequest): Promise<UpdateMemoryNodeResponse>;
|
|
6508
6601
|
/**
|
|
6509
|
-
*
|
|
6602
|
+
* Updates a prompt template based on the template ID.
|
|
6510
6603
|
*
|
|
6511
6604
|
* @param request - UpdatePromptTemplateRequest
|
|
6512
6605
|
* @param headers - map
|
|
@@ -6517,7 +6610,7 @@ export default class Client extends OpenApi {
|
|
|
6517
6610
|
[key: string]: string;
|
|
6518
6611
|
}, runtime: $dara.RuntimeOptions): Promise<UpdatePromptTemplateResponse>;
|
|
6519
6612
|
/**
|
|
6520
|
-
*
|
|
6613
|
+
* Updates a prompt template based on the template ID.
|
|
6521
6614
|
*
|
|
6522
6615
|
* @param request - UpdatePromptTemplateRequest
|
|
6523
6616
|
* @returns UpdatePromptTemplateResponse
|