alibabacloud-agentrun20250910 5.0.0__py3-none-any.whl → 5.2.0__py3-none-any.whl

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.
Files changed (42) hide show
  1. alibabacloud_agentrun20250910/__init__.py +1 -1
  2. alibabacloud_agentrun20250910/client.py +728 -0
  3. alibabacloud_agentrun20250910/models/__init__.py +70 -0
  4. alibabacloud_agentrun20250910/models/_create_custom_domain_input.py +8 -0
  5. alibabacloud_agentrun20250910/models/_create_knowledge_base_input.py +78 -0
  6. alibabacloud_agentrun20250910/models/_create_knowledge_base_request.py +36 -0
  7. alibabacloud_agentrun20250910/models/_create_knowledge_base_response.py +54 -0
  8. alibabacloud_agentrun20250910/models/_create_memory_collection_input.py +101 -0
  9. alibabacloud_agentrun20250910/models/_create_memory_collection_request.py +36 -0
  10. alibabacloud_agentrun20250910/models/_create_memory_collection_response.py +54 -0
  11. alibabacloud_agentrun20250910/models/_custom_domain.py +8 -0
  12. alibabacloud_agentrun20250910/models/_delete_knowledge_base_response.py +54 -0
  13. alibabacloud_agentrun20250910/models/_delete_knowledge_base_result.py +52 -0
  14. alibabacloud_agentrun20250910/models/_delete_memory_collection_response.py +54 -0
  15. alibabacloud_agentrun20250910/models/_embedder_config.py +71 -0
  16. alibabacloud_agentrun20250910/models/_get_knowledge_base_response.py +54 -0
  17. alibabacloud_agentrun20250910/models/_get_memory_collection_response.py +54 -0
  18. alibabacloud_agentrun20250910/models/_knowledge_base.py +99 -0
  19. alibabacloud_agentrun20250910/models/_knowledge_base_result.py +52 -0
  20. alibabacloud_agentrun20250910/models/_list_knowledge_bases_output.py +68 -0
  21. alibabacloud_agentrun20250910/models/_list_knowledge_bases_request.py +49 -0
  22. alibabacloud_agentrun20250910/models/_list_knowledge_bases_response.py +54 -0
  23. alibabacloud_agentrun20250910/models/_list_knowledge_bases_result.py +52 -0
  24. alibabacloud_agentrun20250910/models/_list_memory_collections_output.py +68 -0
  25. alibabacloud_agentrun20250910/models/_list_memory_collections_request.py +65 -0
  26. alibabacloud_agentrun20250910/models/_list_memory_collections_response.py +54 -0
  27. alibabacloud_agentrun20250910/models/_list_memory_collections_result.py +52 -0
  28. alibabacloud_agentrun20250910/models/_llmconfig.py +71 -0
  29. alibabacloud_agentrun20250910/models/_memory_collection.py +117 -0
  30. alibabacloud_agentrun20250910/models/_memory_collection_result.py +52 -0
  31. alibabacloud_agentrun20250910/models/_update_knowledge_base_input.py +59 -0
  32. alibabacloud_agentrun20250910/models/_update_knowledge_base_request.py +36 -0
  33. alibabacloud_agentrun20250910/models/_update_knowledge_base_response.py +54 -0
  34. alibabacloud_agentrun20250910/models/_update_memory_collection_input.py +85 -0
  35. alibabacloud_agentrun20250910/models/_update_memory_collection_request.py +36 -0
  36. alibabacloud_agentrun20250910/models/_update_memory_collection_response.py +54 -0
  37. alibabacloud_agentrun20250910/models/_vector_store_config.py +95 -0
  38. {alibabacloud_agentrun20250910-5.0.0.dist-info → alibabacloud_agentrun20250910-5.2.0.dist-info}/METADATA +1 -1
  39. {alibabacloud_agentrun20250910-5.0.0.dist-info → alibabacloud_agentrun20250910-5.2.0.dist-info}/RECORD +42 -10
  40. {alibabacloud_agentrun20250910-5.0.0.dist-info → alibabacloud_agentrun20250910-5.2.0.dist-info}/LICENSE +0 -0
  41. {alibabacloud_agentrun20250910-5.0.0.dist-info → alibabacloud_agentrun20250910-5.2.0.dist-info}/WHEEL +0 -0
  42. {alibabacloud_agentrun20250910-5.0.0.dist-info → alibabacloud_agentrun20250910-5.2.0.dist-info}/top_level.txt +0 -0
@@ -479,6 +479,146 @@ class Client(OpenApiClient):
479
479
  headers = {}
480
480
  return await self.create_credential_with_options_async(request, headers, runtime)
481
481
 
482
+ def create_knowledge_base_with_options(
483
+ self,
484
+ request: main_models.CreateKnowledgeBaseRequest,
485
+ headers: Dict[str, str],
486
+ runtime: RuntimeOptions,
487
+ ) -> main_models.CreateKnowledgeBaseResponse:
488
+ request.validate()
489
+ req = open_api_util_models.OpenApiRequest(
490
+ headers = headers,
491
+ body = Utils.parse_to_map(request.body)
492
+ )
493
+ params = open_api_util_models.Params(
494
+ action = 'CreateKnowledgeBase',
495
+ version = '2025-09-10',
496
+ protocol = 'HTTPS',
497
+ pathname = f'/2025-09-10/agents/knowledgebases',
498
+ method = 'POST',
499
+ auth_type = 'AK',
500
+ style = 'ROA',
501
+ req_body_type = 'json',
502
+ body_type = 'json'
503
+ )
504
+ return DaraCore.from_map(
505
+ main_models.CreateKnowledgeBaseResponse(),
506
+ self.call_api(params, req, runtime)
507
+ )
508
+
509
+ async def create_knowledge_base_with_options_async(
510
+ self,
511
+ request: main_models.CreateKnowledgeBaseRequest,
512
+ headers: Dict[str, str],
513
+ runtime: RuntimeOptions,
514
+ ) -> main_models.CreateKnowledgeBaseResponse:
515
+ request.validate()
516
+ req = open_api_util_models.OpenApiRequest(
517
+ headers = headers,
518
+ body = Utils.parse_to_map(request.body)
519
+ )
520
+ params = open_api_util_models.Params(
521
+ action = 'CreateKnowledgeBase',
522
+ version = '2025-09-10',
523
+ protocol = 'HTTPS',
524
+ pathname = f'/2025-09-10/agents/knowledgebases',
525
+ method = 'POST',
526
+ auth_type = 'AK',
527
+ style = 'ROA',
528
+ req_body_type = 'json',
529
+ body_type = 'json'
530
+ )
531
+ return DaraCore.from_map(
532
+ main_models.CreateKnowledgeBaseResponse(),
533
+ await self.call_api_async(params, req, runtime)
534
+ )
535
+
536
+ def create_knowledge_base(
537
+ self,
538
+ request: main_models.CreateKnowledgeBaseRequest,
539
+ ) -> main_models.CreateKnowledgeBaseResponse:
540
+ runtime = RuntimeOptions()
541
+ headers = {}
542
+ return self.create_knowledge_base_with_options(request, headers, runtime)
543
+
544
+ async def create_knowledge_base_async(
545
+ self,
546
+ request: main_models.CreateKnowledgeBaseRequest,
547
+ ) -> main_models.CreateKnowledgeBaseResponse:
548
+ runtime = RuntimeOptions()
549
+ headers = {}
550
+ return await self.create_knowledge_base_with_options_async(request, headers, runtime)
551
+
552
+ def create_memory_collection_with_options(
553
+ self,
554
+ request: main_models.CreateMemoryCollectionRequest,
555
+ headers: Dict[str, str],
556
+ runtime: RuntimeOptions,
557
+ ) -> main_models.CreateMemoryCollectionResponse:
558
+ request.validate()
559
+ req = open_api_util_models.OpenApiRequest(
560
+ headers = headers,
561
+ body = Utils.parse_to_map(request.body)
562
+ )
563
+ params = open_api_util_models.Params(
564
+ action = 'CreateMemoryCollection',
565
+ version = '2025-09-10',
566
+ protocol = 'HTTPS',
567
+ pathname = f'/2025-09-10/agents/memory-collections',
568
+ method = 'POST',
569
+ auth_type = 'AK',
570
+ style = 'ROA',
571
+ req_body_type = 'json',
572
+ body_type = 'json'
573
+ )
574
+ return DaraCore.from_map(
575
+ main_models.CreateMemoryCollectionResponse(),
576
+ self.call_api(params, req, runtime)
577
+ )
578
+
579
+ async def create_memory_collection_with_options_async(
580
+ self,
581
+ request: main_models.CreateMemoryCollectionRequest,
582
+ headers: Dict[str, str],
583
+ runtime: RuntimeOptions,
584
+ ) -> main_models.CreateMemoryCollectionResponse:
585
+ request.validate()
586
+ req = open_api_util_models.OpenApiRequest(
587
+ headers = headers,
588
+ body = Utils.parse_to_map(request.body)
589
+ )
590
+ params = open_api_util_models.Params(
591
+ action = 'CreateMemoryCollection',
592
+ version = '2025-09-10',
593
+ protocol = 'HTTPS',
594
+ pathname = f'/2025-09-10/agents/memory-collections',
595
+ method = 'POST',
596
+ auth_type = 'AK',
597
+ style = 'ROA',
598
+ req_body_type = 'json',
599
+ body_type = 'json'
600
+ )
601
+ return DaraCore.from_map(
602
+ main_models.CreateMemoryCollectionResponse(),
603
+ await self.call_api_async(params, req, runtime)
604
+ )
605
+
606
+ def create_memory_collection(
607
+ self,
608
+ request: main_models.CreateMemoryCollectionRequest,
609
+ ) -> main_models.CreateMemoryCollectionResponse:
610
+ runtime = RuntimeOptions()
611
+ headers = {}
612
+ return self.create_memory_collection_with_options(request, headers, runtime)
613
+
614
+ async def create_memory_collection_async(
615
+ self,
616
+ request: main_models.CreateMemoryCollectionRequest,
617
+ ) -> main_models.CreateMemoryCollectionResponse:
618
+ runtime = RuntimeOptions()
619
+ headers = {}
620
+ return await self.create_memory_collection_with_options_async(request, headers, runtime)
621
+
482
622
  def create_model_proxy_with_options(
483
623
  self,
484
624
  request: main_models.CreateModelProxyRequest,
@@ -1093,6 +1233,138 @@ class Client(OpenApiClient):
1093
1233
  headers = {}
1094
1234
  return await self.delete_credential_with_options_async(credential_name, headers, runtime)
1095
1235
 
1236
+ def delete_knowledge_base_with_options(
1237
+ self,
1238
+ knowledge_base_name: str,
1239
+ headers: Dict[str, str],
1240
+ runtime: RuntimeOptions,
1241
+ ) -> main_models.DeleteKnowledgeBaseResponse:
1242
+ req = open_api_util_models.OpenApiRequest(
1243
+ headers = headers
1244
+ )
1245
+ params = open_api_util_models.Params(
1246
+ action = 'DeleteKnowledgeBase',
1247
+ version = '2025-09-10',
1248
+ protocol = 'HTTPS',
1249
+ pathname = f'/2025-09-10/agents/knowledgebases/{DaraURL.percent_encode(knowledge_base_name)}',
1250
+ method = 'DELETE',
1251
+ auth_type = 'AK',
1252
+ style = 'ROA',
1253
+ req_body_type = 'json',
1254
+ body_type = 'json'
1255
+ )
1256
+ return DaraCore.from_map(
1257
+ main_models.DeleteKnowledgeBaseResponse(),
1258
+ self.call_api(params, req, runtime)
1259
+ )
1260
+
1261
+ async def delete_knowledge_base_with_options_async(
1262
+ self,
1263
+ knowledge_base_name: str,
1264
+ headers: Dict[str, str],
1265
+ runtime: RuntimeOptions,
1266
+ ) -> main_models.DeleteKnowledgeBaseResponse:
1267
+ req = open_api_util_models.OpenApiRequest(
1268
+ headers = headers
1269
+ )
1270
+ params = open_api_util_models.Params(
1271
+ action = 'DeleteKnowledgeBase',
1272
+ version = '2025-09-10',
1273
+ protocol = 'HTTPS',
1274
+ pathname = f'/2025-09-10/agents/knowledgebases/{DaraURL.percent_encode(knowledge_base_name)}',
1275
+ method = 'DELETE',
1276
+ auth_type = 'AK',
1277
+ style = 'ROA',
1278
+ req_body_type = 'json',
1279
+ body_type = 'json'
1280
+ )
1281
+ return DaraCore.from_map(
1282
+ main_models.DeleteKnowledgeBaseResponse(),
1283
+ await self.call_api_async(params, req, runtime)
1284
+ )
1285
+
1286
+ def delete_knowledge_base(
1287
+ self,
1288
+ knowledge_base_name: str,
1289
+ ) -> main_models.DeleteKnowledgeBaseResponse:
1290
+ runtime = RuntimeOptions()
1291
+ headers = {}
1292
+ return self.delete_knowledge_base_with_options(knowledge_base_name, headers, runtime)
1293
+
1294
+ async def delete_knowledge_base_async(
1295
+ self,
1296
+ knowledge_base_name: str,
1297
+ ) -> main_models.DeleteKnowledgeBaseResponse:
1298
+ runtime = RuntimeOptions()
1299
+ headers = {}
1300
+ return await self.delete_knowledge_base_with_options_async(knowledge_base_name, headers, runtime)
1301
+
1302
+ def delete_memory_collection_with_options(
1303
+ self,
1304
+ memory_collection_name: str,
1305
+ headers: Dict[str, str],
1306
+ runtime: RuntimeOptions,
1307
+ ) -> main_models.DeleteMemoryCollectionResponse:
1308
+ req = open_api_util_models.OpenApiRequest(
1309
+ headers = headers
1310
+ )
1311
+ params = open_api_util_models.Params(
1312
+ action = 'DeleteMemoryCollection',
1313
+ version = '2025-09-10',
1314
+ protocol = 'HTTPS',
1315
+ pathname = f'/2025-09-10/agents/memory-collections/{DaraURL.percent_encode(memory_collection_name)}',
1316
+ method = 'DELETE',
1317
+ auth_type = 'AK',
1318
+ style = 'ROA',
1319
+ req_body_type = 'json',
1320
+ body_type = 'json'
1321
+ )
1322
+ return DaraCore.from_map(
1323
+ main_models.DeleteMemoryCollectionResponse(),
1324
+ self.call_api(params, req, runtime)
1325
+ )
1326
+
1327
+ async def delete_memory_collection_with_options_async(
1328
+ self,
1329
+ memory_collection_name: str,
1330
+ headers: Dict[str, str],
1331
+ runtime: RuntimeOptions,
1332
+ ) -> main_models.DeleteMemoryCollectionResponse:
1333
+ req = open_api_util_models.OpenApiRequest(
1334
+ headers = headers
1335
+ )
1336
+ params = open_api_util_models.Params(
1337
+ action = 'DeleteMemoryCollection',
1338
+ version = '2025-09-10',
1339
+ protocol = 'HTTPS',
1340
+ pathname = f'/2025-09-10/agents/memory-collections/{DaraURL.percent_encode(memory_collection_name)}',
1341
+ method = 'DELETE',
1342
+ auth_type = 'AK',
1343
+ style = 'ROA',
1344
+ req_body_type = 'json',
1345
+ body_type = 'json'
1346
+ )
1347
+ return DaraCore.from_map(
1348
+ main_models.DeleteMemoryCollectionResponse(),
1349
+ await self.call_api_async(params, req, runtime)
1350
+ )
1351
+
1352
+ def delete_memory_collection(
1353
+ self,
1354
+ memory_collection_name: str,
1355
+ ) -> main_models.DeleteMemoryCollectionResponse:
1356
+ runtime = RuntimeOptions()
1357
+ headers = {}
1358
+ return self.delete_memory_collection_with_options(memory_collection_name, headers, runtime)
1359
+
1360
+ async def delete_memory_collection_async(
1361
+ self,
1362
+ memory_collection_name: str,
1363
+ ) -> main_models.DeleteMemoryCollectionResponse:
1364
+ runtime = RuntimeOptions()
1365
+ headers = {}
1366
+ return await self.delete_memory_collection_with_options_async(memory_collection_name, headers, runtime)
1367
+
1096
1368
  def delete_model_proxy_with_options(
1097
1369
  self,
1098
1370
  model_proxy_name: str,
@@ -1789,6 +2061,138 @@ class Client(OpenApiClient):
1789
2061
  headers = {}
1790
2062
  return await self.get_credential_with_options_async(credential_name, headers, runtime)
1791
2063
 
2064
+ def get_knowledge_base_with_options(
2065
+ self,
2066
+ knowledge_base_name: str,
2067
+ headers: Dict[str, str],
2068
+ runtime: RuntimeOptions,
2069
+ ) -> main_models.GetKnowledgeBaseResponse:
2070
+ req = open_api_util_models.OpenApiRequest(
2071
+ headers = headers
2072
+ )
2073
+ params = open_api_util_models.Params(
2074
+ action = 'GetKnowledgeBase',
2075
+ version = '2025-09-10',
2076
+ protocol = 'HTTPS',
2077
+ pathname = f'/2025-09-10/agents/knowledgebases/{DaraURL.percent_encode(knowledge_base_name)}',
2078
+ method = 'GET',
2079
+ auth_type = 'AK',
2080
+ style = 'ROA',
2081
+ req_body_type = 'json',
2082
+ body_type = 'json'
2083
+ )
2084
+ return DaraCore.from_map(
2085
+ main_models.GetKnowledgeBaseResponse(),
2086
+ self.call_api(params, req, runtime)
2087
+ )
2088
+
2089
+ async def get_knowledge_base_with_options_async(
2090
+ self,
2091
+ knowledge_base_name: str,
2092
+ headers: Dict[str, str],
2093
+ runtime: RuntimeOptions,
2094
+ ) -> main_models.GetKnowledgeBaseResponse:
2095
+ req = open_api_util_models.OpenApiRequest(
2096
+ headers = headers
2097
+ )
2098
+ params = open_api_util_models.Params(
2099
+ action = 'GetKnowledgeBase',
2100
+ version = '2025-09-10',
2101
+ protocol = 'HTTPS',
2102
+ pathname = f'/2025-09-10/agents/knowledgebases/{DaraURL.percent_encode(knowledge_base_name)}',
2103
+ method = 'GET',
2104
+ auth_type = 'AK',
2105
+ style = 'ROA',
2106
+ req_body_type = 'json',
2107
+ body_type = 'json'
2108
+ )
2109
+ return DaraCore.from_map(
2110
+ main_models.GetKnowledgeBaseResponse(),
2111
+ await self.call_api_async(params, req, runtime)
2112
+ )
2113
+
2114
+ def get_knowledge_base(
2115
+ self,
2116
+ knowledge_base_name: str,
2117
+ ) -> main_models.GetKnowledgeBaseResponse:
2118
+ runtime = RuntimeOptions()
2119
+ headers = {}
2120
+ return self.get_knowledge_base_with_options(knowledge_base_name, headers, runtime)
2121
+
2122
+ async def get_knowledge_base_async(
2123
+ self,
2124
+ knowledge_base_name: str,
2125
+ ) -> main_models.GetKnowledgeBaseResponse:
2126
+ runtime = RuntimeOptions()
2127
+ headers = {}
2128
+ return await self.get_knowledge_base_with_options_async(knowledge_base_name, headers, runtime)
2129
+
2130
+ def get_memory_collection_with_options(
2131
+ self,
2132
+ memory_collection_name: str,
2133
+ headers: Dict[str, str],
2134
+ runtime: RuntimeOptions,
2135
+ ) -> main_models.GetMemoryCollectionResponse:
2136
+ req = open_api_util_models.OpenApiRequest(
2137
+ headers = headers
2138
+ )
2139
+ params = open_api_util_models.Params(
2140
+ action = 'GetMemoryCollection',
2141
+ version = '2025-09-10',
2142
+ protocol = 'HTTPS',
2143
+ pathname = f'/2025-09-10/agents/memory-collections/{DaraURL.percent_encode(memory_collection_name)}',
2144
+ method = 'GET',
2145
+ auth_type = 'AK',
2146
+ style = 'ROA',
2147
+ req_body_type = 'json',
2148
+ body_type = 'json'
2149
+ )
2150
+ return DaraCore.from_map(
2151
+ main_models.GetMemoryCollectionResponse(),
2152
+ self.call_api(params, req, runtime)
2153
+ )
2154
+
2155
+ async def get_memory_collection_with_options_async(
2156
+ self,
2157
+ memory_collection_name: str,
2158
+ headers: Dict[str, str],
2159
+ runtime: RuntimeOptions,
2160
+ ) -> main_models.GetMemoryCollectionResponse:
2161
+ req = open_api_util_models.OpenApiRequest(
2162
+ headers = headers
2163
+ )
2164
+ params = open_api_util_models.Params(
2165
+ action = 'GetMemoryCollection',
2166
+ version = '2025-09-10',
2167
+ protocol = 'HTTPS',
2168
+ pathname = f'/2025-09-10/agents/memory-collections/{DaraURL.percent_encode(memory_collection_name)}',
2169
+ method = 'GET',
2170
+ auth_type = 'AK',
2171
+ style = 'ROA',
2172
+ req_body_type = 'json',
2173
+ body_type = 'json'
2174
+ )
2175
+ return DaraCore.from_map(
2176
+ main_models.GetMemoryCollectionResponse(),
2177
+ await self.call_api_async(params, req, runtime)
2178
+ )
2179
+
2180
+ def get_memory_collection(
2181
+ self,
2182
+ memory_collection_name: str,
2183
+ ) -> main_models.GetMemoryCollectionResponse:
2184
+ runtime = RuntimeOptions()
2185
+ headers = {}
2186
+ return self.get_memory_collection_with_options(memory_collection_name, headers, runtime)
2187
+
2188
+ async def get_memory_collection_async(
2189
+ self,
2190
+ memory_collection_name: str,
2191
+ ) -> main_models.GetMemoryCollectionResponse:
2192
+ runtime = RuntimeOptions()
2193
+ headers = {}
2194
+ return await self.get_memory_collection_with_options_async(memory_collection_name, headers, runtime)
2195
+
1792
2196
  def get_model_proxy_with_options(
1793
2197
  self,
1794
2198
  model_proxy_name: str,
@@ -2593,6 +2997,182 @@ class Client(OpenApiClient):
2593
2997
  headers = {}
2594
2998
  return await self.list_credentials_with_options_async(request, headers, runtime)
2595
2999
 
3000
+ def list_knowledge_bases_with_options(
3001
+ self,
3002
+ request: main_models.ListKnowledgeBasesRequest,
3003
+ headers: Dict[str, str],
3004
+ runtime: RuntimeOptions,
3005
+ ) -> main_models.ListKnowledgeBasesResponse:
3006
+ request.validate()
3007
+ query = {}
3008
+ if not DaraCore.is_null(request.page_number):
3009
+ query['pageNumber'] = request.page_number
3010
+ if not DaraCore.is_null(request.page_size):
3011
+ query['pageSize'] = request.page_size
3012
+ if not DaraCore.is_null(request.provider):
3013
+ query['provider'] = request.provider
3014
+ req = open_api_util_models.OpenApiRequest(
3015
+ headers = headers,
3016
+ query = Utils.query(query)
3017
+ )
3018
+ params = open_api_util_models.Params(
3019
+ action = 'ListKnowledgeBases',
3020
+ version = '2025-09-10',
3021
+ protocol = 'HTTPS',
3022
+ pathname = f'/2025-09-10/agents/knowledgebases',
3023
+ method = 'GET',
3024
+ auth_type = 'AK',
3025
+ style = 'ROA',
3026
+ req_body_type = 'json',
3027
+ body_type = 'json'
3028
+ )
3029
+ return DaraCore.from_map(
3030
+ main_models.ListKnowledgeBasesResponse(),
3031
+ self.call_api(params, req, runtime)
3032
+ )
3033
+
3034
+ async def list_knowledge_bases_with_options_async(
3035
+ self,
3036
+ request: main_models.ListKnowledgeBasesRequest,
3037
+ headers: Dict[str, str],
3038
+ runtime: RuntimeOptions,
3039
+ ) -> main_models.ListKnowledgeBasesResponse:
3040
+ request.validate()
3041
+ query = {}
3042
+ if not DaraCore.is_null(request.page_number):
3043
+ query['pageNumber'] = request.page_number
3044
+ if not DaraCore.is_null(request.page_size):
3045
+ query['pageSize'] = request.page_size
3046
+ if not DaraCore.is_null(request.provider):
3047
+ query['provider'] = request.provider
3048
+ req = open_api_util_models.OpenApiRequest(
3049
+ headers = headers,
3050
+ query = Utils.query(query)
3051
+ )
3052
+ params = open_api_util_models.Params(
3053
+ action = 'ListKnowledgeBases',
3054
+ version = '2025-09-10',
3055
+ protocol = 'HTTPS',
3056
+ pathname = f'/2025-09-10/agents/knowledgebases',
3057
+ method = 'GET',
3058
+ auth_type = 'AK',
3059
+ style = 'ROA',
3060
+ req_body_type = 'json',
3061
+ body_type = 'json'
3062
+ )
3063
+ return DaraCore.from_map(
3064
+ main_models.ListKnowledgeBasesResponse(),
3065
+ await self.call_api_async(params, req, runtime)
3066
+ )
3067
+
3068
+ def list_knowledge_bases(
3069
+ self,
3070
+ request: main_models.ListKnowledgeBasesRequest,
3071
+ ) -> main_models.ListKnowledgeBasesResponse:
3072
+ runtime = RuntimeOptions()
3073
+ headers = {}
3074
+ return self.list_knowledge_bases_with_options(request, headers, runtime)
3075
+
3076
+ async def list_knowledge_bases_async(
3077
+ self,
3078
+ request: main_models.ListKnowledgeBasesRequest,
3079
+ ) -> main_models.ListKnowledgeBasesResponse:
3080
+ runtime = RuntimeOptions()
3081
+ headers = {}
3082
+ return await self.list_knowledge_bases_with_options_async(request, headers, runtime)
3083
+
3084
+ def list_memory_collections_with_options(
3085
+ self,
3086
+ request: main_models.ListMemoryCollectionsRequest,
3087
+ headers: Dict[str, str],
3088
+ runtime: RuntimeOptions,
3089
+ ) -> main_models.ListMemoryCollectionsResponse:
3090
+ request.validate()
3091
+ query = {}
3092
+ if not DaraCore.is_null(request.memory_collection_name):
3093
+ query['memoryCollectionName'] = request.memory_collection_name
3094
+ if not DaraCore.is_null(request.page_number):
3095
+ query['pageNumber'] = request.page_number
3096
+ if not DaraCore.is_null(request.page_size):
3097
+ query['pageSize'] = request.page_size
3098
+ if not DaraCore.is_null(request.status):
3099
+ query['status'] = request.status
3100
+ if not DaraCore.is_null(request.type):
3101
+ query['type'] = request.type
3102
+ req = open_api_util_models.OpenApiRequest(
3103
+ headers = headers,
3104
+ query = Utils.query(query)
3105
+ )
3106
+ params = open_api_util_models.Params(
3107
+ action = 'ListMemoryCollections',
3108
+ version = '2025-09-10',
3109
+ protocol = 'HTTPS',
3110
+ pathname = f'/2025-09-10/agents/memory-collections',
3111
+ method = 'GET',
3112
+ auth_type = 'AK',
3113
+ style = 'ROA',
3114
+ req_body_type = 'json',
3115
+ body_type = 'json'
3116
+ )
3117
+ return DaraCore.from_map(
3118
+ main_models.ListMemoryCollectionsResponse(),
3119
+ self.call_api(params, req, runtime)
3120
+ )
3121
+
3122
+ async def list_memory_collections_with_options_async(
3123
+ self,
3124
+ request: main_models.ListMemoryCollectionsRequest,
3125
+ headers: Dict[str, str],
3126
+ runtime: RuntimeOptions,
3127
+ ) -> main_models.ListMemoryCollectionsResponse:
3128
+ request.validate()
3129
+ query = {}
3130
+ if not DaraCore.is_null(request.memory_collection_name):
3131
+ query['memoryCollectionName'] = request.memory_collection_name
3132
+ if not DaraCore.is_null(request.page_number):
3133
+ query['pageNumber'] = request.page_number
3134
+ if not DaraCore.is_null(request.page_size):
3135
+ query['pageSize'] = request.page_size
3136
+ if not DaraCore.is_null(request.status):
3137
+ query['status'] = request.status
3138
+ if not DaraCore.is_null(request.type):
3139
+ query['type'] = request.type
3140
+ req = open_api_util_models.OpenApiRequest(
3141
+ headers = headers,
3142
+ query = Utils.query(query)
3143
+ )
3144
+ params = open_api_util_models.Params(
3145
+ action = 'ListMemoryCollections',
3146
+ version = '2025-09-10',
3147
+ protocol = 'HTTPS',
3148
+ pathname = f'/2025-09-10/agents/memory-collections',
3149
+ method = 'GET',
3150
+ auth_type = 'AK',
3151
+ style = 'ROA',
3152
+ req_body_type = 'json',
3153
+ body_type = 'json'
3154
+ )
3155
+ return DaraCore.from_map(
3156
+ main_models.ListMemoryCollectionsResponse(),
3157
+ await self.call_api_async(params, req, runtime)
3158
+ )
3159
+
3160
+ def list_memory_collections(
3161
+ self,
3162
+ request: main_models.ListMemoryCollectionsRequest,
3163
+ ) -> main_models.ListMemoryCollectionsResponse:
3164
+ runtime = RuntimeOptions()
3165
+ headers = {}
3166
+ return self.list_memory_collections_with_options(request, headers, runtime)
3167
+
3168
+ async def list_memory_collections_async(
3169
+ self,
3170
+ request: main_models.ListMemoryCollectionsRequest,
3171
+ ) -> main_models.ListMemoryCollectionsResponse:
3172
+ runtime = RuntimeOptions()
3173
+ headers = {}
3174
+ return await self.list_memory_collections_with_options_async(request, headers, runtime)
3175
+
2596
3176
  def list_model_providers_with_options(
2597
3177
  self,
2598
3178
  request: main_models.ListModelProvidersRequest,
@@ -3481,6 +4061,154 @@ class Client(OpenApiClient):
3481
4061
  headers = {}
3482
4062
  return await self.update_credential_with_options_async(credential_name, request, headers, runtime)
3483
4063
 
4064
+ def update_knowledge_base_with_options(
4065
+ self,
4066
+ knowledge_base_name: str,
4067
+ request: main_models.UpdateKnowledgeBaseRequest,
4068
+ headers: Dict[str, str],
4069
+ runtime: RuntimeOptions,
4070
+ ) -> main_models.UpdateKnowledgeBaseResponse:
4071
+ request.validate()
4072
+ req = open_api_util_models.OpenApiRequest(
4073
+ headers = headers,
4074
+ body = Utils.parse_to_map(request.body)
4075
+ )
4076
+ params = open_api_util_models.Params(
4077
+ action = 'UpdateKnowledgeBase',
4078
+ version = '2025-09-10',
4079
+ protocol = 'HTTPS',
4080
+ pathname = f'/2025-09-10/agents/knowledgebases/{DaraURL.percent_encode(knowledge_base_name)}',
4081
+ method = 'PUT',
4082
+ auth_type = 'AK',
4083
+ style = 'ROA',
4084
+ req_body_type = 'json',
4085
+ body_type = 'json'
4086
+ )
4087
+ return DaraCore.from_map(
4088
+ main_models.UpdateKnowledgeBaseResponse(),
4089
+ self.call_api(params, req, runtime)
4090
+ )
4091
+
4092
+ async def update_knowledge_base_with_options_async(
4093
+ self,
4094
+ knowledge_base_name: str,
4095
+ request: main_models.UpdateKnowledgeBaseRequest,
4096
+ headers: Dict[str, str],
4097
+ runtime: RuntimeOptions,
4098
+ ) -> main_models.UpdateKnowledgeBaseResponse:
4099
+ request.validate()
4100
+ req = open_api_util_models.OpenApiRequest(
4101
+ headers = headers,
4102
+ body = Utils.parse_to_map(request.body)
4103
+ )
4104
+ params = open_api_util_models.Params(
4105
+ action = 'UpdateKnowledgeBase',
4106
+ version = '2025-09-10',
4107
+ protocol = 'HTTPS',
4108
+ pathname = f'/2025-09-10/agents/knowledgebases/{DaraURL.percent_encode(knowledge_base_name)}',
4109
+ method = 'PUT',
4110
+ auth_type = 'AK',
4111
+ style = 'ROA',
4112
+ req_body_type = 'json',
4113
+ body_type = 'json'
4114
+ )
4115
+ return DaraCore.from_map(
4116
+ main_models.UpdateKnowledgeBaseResponse(),
4117
+ await self.call_api_async(params, req, runtime)
4118
+ )
4119
+
4120
+ def update_knowledge_base(
4121
+ self,
4122
+ knowledge_base_name: str,
4123
+ request: main_models.UpdateKnowledgeBaseRequest,
4124
+ ) -> main_models.UpdateKnowledgeBaseResponse:
4125
+ runtime = RuntimeOptions()
4126
+ headers = {}
4127
+ return self.update_knowledge_base_with_options(knowledge_base_name, request, headers, runtime)
4128
+
4129
+ async def update_knowledge_base_async(
4130
+ self,
4131
+ knowledge_base_name: str,
4132
+ request: main_models.UpdateKnowledgeBaseRequest,
4133
+ ) -> main_models.UpdateKnowledgeBaseResponse:
4134
+ runtime = RuntimeOptions()
4135
+ headers = {}
4136
+ return await self.update_knowledge_base_with_options_async(knowledge_base_name, request, headers, runtime)
4137
+
4138
+ def update_memory_collection_with_options(
4139
+ self,
4140
+ memory_collection_name: str,
4141
+ request: main_models.UpdateMemoryCollectionRequest,
4142
+ headers: Dict[str, str],
4143
+ runtime: RuntimeOptions,
4144
+ ) -> main_models.UpdateMemoryCollectionResponse:
4145
+ request.validate()
4146
+ req = open_api_util_models.OpenApiRequest(
4147
+ headers = headers,
4148
+ body = Utils.parse_to_map(request.body)
4149
+ )
4150
+ params = open_api_util_models.Params(
4151
+ action = 'UpdateMemoryCollection',
4152
+ version = '2025-09-10',
4153
+ protocol = 'HTTPS',
4154
+ pathname = f'/2025-09-10/agents/memory-collections/{DaraURL.percent_encode(memory_collection_name)}',
4155
+ method = 'PUT',
4156
+ auth_type = 'AK',
4157
+ style = 'ROA',
4158
+ req_body_type = 'json',
4159
+ body_type = 'json'
4160
+ )
4161
+ return DaraCore.from_map(
4162
+ main_models.UpdateMemoryCollectionResponse(),
4163
+ self.call_api(params, req, runtime)
4164
+ )
4165
+
4166
+ async def update_memory_collection_with_options_async(
4167
+ self,
4168
+ memory_collection_name: str,
4169
+ request: main_models.UpdateMemoryCollectionRequest,
4170
+ headers: Dict[str, str],
4171
+ runtime: RuntimeOptions,
4172
+ ) -> main_models.UpdateMemoryCollectionResponse:
4173
+ request.validate()
4174
+ req = open_api_util_models.OpenApiRequest(
4175
+ headers = headers,
4176
+ body = Utils.parse_to_map(request.body)
4177
+ )
4178
+ params = open_api_util_models.Params(
4179
+ action = 'UpdateMemoryCollection',
4180
+ version = '2025-09-10',
4181
+ protocol = 'HTTPS',
4182
+ pathname = f'/2025-09-10/agents/memory-collections/{DaraURL.percent_encode(memory_collection_name)}',
4183
+ method = 'PUT',
4184
+ auth_type = 'AK',
4185
+ style = 'ROA',
4186
+ req_body_type = 'json',
4187
+ body_type = 'json'
4188
+ )
4189
+ return DaraCore.from_map(
4190
+ main_models.UpdateMemoryCollectionResponse(),
4191
+ await self.call_api_async(params, req, runtime)
4192
+ )
4193
+
4194
+ def update_memory_collection(
4195
+ self,
4196
+ memory_collection_name: str,
4197
+ request: main_models.UpdateMemoryCollectionRequest,
4198
+ ) -> main_models.UpdateMemoryCollectionResponse:
4199
+ runtime = RuntimeOptions()
4200
+ headers = {}
4201
+ return self.update_memory_collection_with_options(memory_collection_name, request, headers, runtime)
4202
+
4203
+ async def update_memory_collection_async(
4204
+ self,
4205
+ memory_collection_name: str,
4206
+ request: main_models.UpdateMemoryCollectionRequest,
4207
+ ) -> main_models.UpdateMemoryCollectionResponse:
4208
+ runtime = RuntimeOptions()
4209
+ headers = {}
4210
+ return await self.update_memory_collection_with_options_async(memory_collection_name, request, headers, runtime)
4211
+
3484
4212
  def update_model_proxy_with_options(
3485
4213
  self,
3486
4214
  model_proxy_name: str,