alibabacloud-agentrun20250910 5.1.0__py3-none-any.whl → 5.3.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.
- alibabacloud_agentrun20250910/__init__.py +1 -1
- alibabacloud_agentrun20250910/client.py +757 -21
- alibabacloud_agentrun20250910/models/__init__.py +34 -0
- alibabacloud_agentrun20250910/models/_create_custom_domain_request.py +36 -0
- alibabacloud_agentrun20250910/models/_create_custom_domain_response.py +54 -0
- alibabacloud_agentrun20250910/models/_create_memory_collection_request.py +36 -0
- alibabacloud_agentrun20250910/models/_create_memory_collection_response.py +54 -0
- alibabacloud_agentrun20250910/models/_delete_custom_domain_response.py +54 -0
- alibabacloud_agentrun20250910/models/_delete_memory_collection_response.py +54 -0
- alibabacloud_agentrun20250910/models/_get_custom_domain_response.py +54 -0
- alibabacloud_agentrun20250910/models/_get_memory_collection_response.py +54 -0
- alibabacloud_agentrun20250910/models/_list_custom_domains_request.py +65 -0
- alibabacloud_agentrun20250910/models/_list_custom_domains_response.py +54 -0
- alibabacloud_agentrun20250910/models/_list_memory_collections_request.py +65 -0
- alibabacloud_agentrun20250910/models/_list_memory_collections_response.py +54 -0
- alibabacloud_agentrun20250910/models/_protocol_configuration.py +21 -1
- alibabacloud_agentrun20250910/models/_protocol_settings.py +115 -0
- alibabacloud_agentrun20250910/models/_update_custom_domain_request.py +36 -0
- alibabacloud_agentrun20250910/models/_update_custom_domain_response.py +54 -0
- alibabacloud_agentrun20250910/models/_update_memory_collection_request.py +36 -0
- alibabacloud_agentrun20250910/models/_update_memory_collection_response.py +54 -0
- {alibabacloud_agentrun20250910-5.1.0.dist-info → alibabacloud_agentrun20250910-5.3.0.dist-info}/METADATA +1 -1
- {alibabacloud_agentrun20250910-5.1.0.dist-info → alibabacloud_agentrun20250910-5.3.0.dist-info}/RECORD +26 -9
- {alibabacloud_agentrun20250910-5.1.0.dist-info → alibabacloud_agentrun20250910-5.3.0.dist-info}/LICENSE +0 -0
- {alibabacloud_agentrun20250910-5.1.0.dist-info → alibabacloud_agentrun20250910-5.3.0.dist-info}/WHEEL +0 -0
- {alibabacloud_agentrun20250910-5.1.0.dist-info → alibabacloud_agentrun20250910-5.3.0.dist-info}/top_level.txt +0 -0
|
@@ -479,6 +479,76 @@ class Client(OpenApiClient):
|
|
|
479
479
|
headers = {}
|
|
480
480
|
return await self.create_credential_with_options_async(request, headers, runtime)
|
|
481
481
|
|
|
482
|
+
def create_custom_domain_with_options(
|
|
483
|
+
self,
|
|
484
|
+
request: main_models.CreateCustomDomainRequest,
|
|
485
|
+
headers: Dict[str, str],
|
|
486
|
+
runtime: RuntimeOptions,
|
|
487
|
+
) -> main_models.CreateCustomDomainResponse:
|
|
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 = 'CreateCustomDomain',
|
|
495
|
+
version = '2025-09-10',
|
|
496
|
+
protocol = 'HTTPS',
|
|
497
|
+
pathname = f'/2025-09-10/agents/custom-domains',
|
|
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.CreateCustomDomainResponse(),
|
|
506
|
+
self.call_api(params, req, runtime)
|
|
507
|
+
)
|
|
508
|
+
|
|
509
|
+
async def create_custom_domain_with_options_async(
|
|
510
|
+
self,
|
|
511
|
+
request: main_models.CreateCustomDomainRequest,
|
|
512
|
+
headers: Dict[str, str],
|
|
513
|
+
runtime: RuntimeOptions,
|
|
514
|
+
) -> main_models.CreateCustomDomainResponse:
|
|
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 = 'CreateCustomDomain',
|
|
522
|
+
version = '2025-09-10',
|
|
523
|
+
protocol = 'HTTPS',
|
|
524
|
+
pathname = f'/2025-09-10/agents/custom-domains',
|
|
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.CreateCustomDomainResponse(),
|
|
533
|
+
await self.call_api_async(params, req, runtime)
|
|
534
|
+
)
|
|
535
|
+
|
|
536
|
+
def create_custom_domain(
|
|
537
|
+
self,
|
|
538
|
+
request: main_models.CreateCustomDomainRequest,
|
|
539
|
+
) -> main_models.CreateCustomDomainResponse:
|
|
540
|
+
runtime = RuntimeOptions()
|
|
541
|
+
headers = {}
|
|
542
|
+
return self.create_custom_domain_with_options(request, headers, runtime)
|
|
543
|
+
|
|
544
|
+
async def create_custom_domain_async(
|
|
545
|
+
self,
|
|
546
|
+
request: main_models.CreateCustomDomainRequest,
|
|
547
|
+
) -> main_models.CreateCustomDomainResponse:
|
|
548
|
+
runtime = RuntimeOptions()
|
|
549
|
+
headers = {}
|
|
550
|
+
return await self.create_custom_domain_with_options_async(request, headers, runtime)
|
|
551
|
+
|
|
482
552
|
def create_knowledge_base_with_options(
|
|
483
553
|
self,
|
|
484
554
|
request: main_models.CreateKnowledgeBaseRequest,
|
|
@@ -549,6 +619,76 @@ class Client(OpenApiClient):
|
|
|
549
619
|
headers = {}
|
|
550
620
|
return await self.create_knowledge_base_with_options_async(request, headers, runtime)
|
|
551
621
|
|
|
622
|
+
def create_memory_collection_with_options(
|
|
623
|
+
self,
|
|
624
|
+
request: main_models.CreateMemoryCollectionRequest,
|
|
625
|
+
headers: Dict[str, str],
|
|
626
|
+
runtime: RuntimeOptions,
|
|
627
|
+
) -> main_models.CreateMemoryCollectionResponse:
|
|
628
|
+
request.validate()
|
|
629
|
+
req = open_api_util_models.OpenApiRequest(
|
|
630
|
+
headers = headers,
|
|
631
|
+
body = Utils.parse_to_map(request.body)
|
|
632
|
+
)
|
|
633
|
+
params = open_api_util_models.Params(
|
|
634
|
+
action = 'CreateMemoryCollection',
|
|
635
|
+
version = '2025-09-10',
|
|
636
|
+
protocol = 'HTTPS',
|
|
637
|
+
pathname = f'/2025-09-10/agents/memory-collections',
|
|
638
|
+
method = 'POST',
|
|
639
|
+
auth_type = 'AK',
|
|
640
|
+
style = 'ROA',
|
|
641
|
+
req_body_type = 'json',
|
|
642
|
+
body_type = 'json'
|
|
643
|
+
)
|
|
644
|
+
return DaraCore.from_map(
|
|
645
|
+
main_models.CreateMemoryCollectionResponse(),
|
|
646
|
+
self.call_api(params, req, runtime)
|
|
647
|
+
)
|
|
648
|
+
|
|
649
|
+
async def create_memory_collection_with_options_async(
|
|
650
|
+
self,
|
|
651
|
+
request: main_models.CreateMemoryCollectionRequest,
|
|
652
|
+
headers: Dict[str, str],
|
|
653
|
+
runtime: RuntimeOptions,
|
|
654
|
+
) -> main_models.CreateMemoryCollectionResponse:
|
|
655
|
+
request.validate()
|
|
656
|
+
req = open_api_util_models.OpenApiRequest(
|
|
657
|
+
headers = headers,
|
|
658
|
+
body = Utils.parse_to_map(request.body)
|
|
659
|
+
)
|
|
660
|
+
params = open_api_util_models.Params(
|
|
661
|
+
action = 'CreateMemoryCollection',
|
|
662
|
+
version = '2025-09-10',
|
|
663
|
+
protocol = 'HTTPS',
|
|
664
|
+
pathname = f'/2025-09-10/agents/memory-collections',
|
|
665
|
+
method = 'POST',
|
|
666
|
+
auth_type = 'AK',
|
|
667
|
+
style = 'ROA',
|
|
668
|
+
req_body_type = 'json',
|
|
669
|
+
body_type = 'json'
|
|
670
|
+
)
|
|
671
|
+
return DaraCore.from_map(
|
|
672
|
+
main_models.CreateMemoryCollectionResponse(),
|
|
673
|
+
await self.call_api_async(params, req, runtime)
|
|
674
|
+
)
|
|
675
|
+
|
|
676
|
+
def create_memory_collection(
|
|
677
|
+
self,
|
|
678
|
+
request: main_models.CreateMemoryCollectionRequest,
|
|
679
|
+
) -> main_models.CreateMemoryCollectionResponse:
|
|
680
|
+
runtime = RuntimeOptions()
|
|
681
|
+
headers = {}
|
|
682
|
+
return self.create_memory_collection_with_options(request, headers, runtime)
|
|
683
|
+
|
|
684
|
+
async def create_memory_collection_async(
|
|
685
|
+
self,
|
|
686
|
+
request: main_models.CreateMemoryCollectionRequest,
|
|
687
|
+
) -> main_models.CreateMemoryCollectionResponse:
|
|
688
|
+
runtime = RuntimeOptions()
|
|
689
|
+
headers = {}
|
|
690
|
+
return await self.create_memory_collection_with_options_async(request, headers, runtime)
|
|
691
|
+
|
|
552
692
|
def create_model_proxy_with_options(
|
|
553
693
|
self,
|
|
554
694
|
request: main_models.CreateModelProxyRequest,
|
|
@@ -1163,6 +1303,72 @@ class Client(OpenApiClient):
|
|
|
1163
1303
|
headers = {}
|
|
1164
1304
|
return await self.delete_credential_with_options_async(credential_name, headers, runtime)
|
|
1165
1305
|
|
|
1306
|
+
def delete_custom_domain_with_options(
|
|
1307
|
+
self,
|
|
1308
|
+
domain_name: str,
|
|
1309
|
+
headers: Dict[str, str],
|
|
1310
|
+
runtime: RuntimeOptions,
|
|
1311
|
+
) -> main_models.DeleteCustomDomainResponse:
|
|
1312
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1313
|
+
headers = headers
|
|
1314
|
+
)
|
|
1315
|
+
params = open_api_util_models.Params(
|
|
1316
|
+
action = 'DeleteCustomDomain',
|
|
1317
|
+
version = '2025-09-10',
|
|
1318
|
+
protocol = 'HTTPS',
|
|
1319
|
+
pathname = f'/2025-09-10/agents/custom-domains/{DaraURL.percent_encode(domain_name)}',
|
|
1320
|
+
method = 'DELETE',
|
|
1321
|
+
auth_type = 'AK',
|
|
1322
|
+
style = 'ROA',
|
|
1323
|
+
req_body_type = 'json',
|
|
1324
|
+
body_type = 'json'
|
|
1325
|
+
)
|
|
1326
|
+
return DaraCore.from_map(
|
|
1327
|
+
main_models.DeleteCustomDomainResponse(),
|
|
1328
|
+
self.call_api(params, req, runtime)
|
|
1329
|
+
)
|
|
1330
|
+
|
|
1331
|
+
async def delete_custom_domain_with_options_async(
|
|
1332
|
+
self,
|
|
1333
|
+
domain_name: str,
|
|
1334
|
+
headers: Dict[str, str],
|
|
1335
|
+
runtime: RuntimeOptions,
|
|
1336
|
+
) -> main_models.DeleteCustomDomainResponse:
|
|
1337
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1338
|
+
headers = headers
|
|
1339
|
+
)
|
|
1340
|
+
params = open_api_util_models.Params(
|
|
1341
|
+
action = 'DeleteCustomDomain',
|
|
1342
|
+
version = '2025-09-10',
|
|
1343
|
+
protocol = 'HTTPS',
|
|
1344
|
+
pathname = f'/2025-09-10/agents/custom-domains/{DaraURL.percent_encode(domain_name)}',
|
|
1345
|
+
method = 'DELETE',
|
|
1346
|
+
auth_type = 'AK',
|
|
1347
|
+
style = 'ROA',
|
|
1348
|
+
req_body_type = 'json',
|
|
1349
|
+
body_type = 'json'
|
|
1350
|
+
)
|
|
1351
|
+
return DaraCore.from_map(
|
|
1352
|
+
main_models.DeleteCustomDomainResponse(),
|
|
1353
|
+
await self.call_api_async(params, req, runtime)
|
|
1354
|
+
)
|
|
1355
|
+
|
|
1356
|
+
def delete_custom_domain(
|
|
1357
|
+
self,
|
|
1358
|
+
domain_name: str,
|
|
1359
|
+
) -> main_models.DeleteCustomDomainResponse:
|
|
1360
|
+
runtime = RuntimeOptions()
|
|
1361
|
+
headers = {}
|
|
1362
|
+
return self.delete_custom_domain_with_options(domain_name, headers, runtime)
|
|
1363
|
+
|
|
1364
|
+
async def delete_custom_domain_async(
|
|
1365
|
+
self,
|
|
1366
|
+
domain_name: str,
|
|
1367
|
+
) -> main_models.DeleteCustomDomainResponse:
|
|
1368
|
+
runtime = RuntimeOptions()
|
|
1369
|
+
headers = {}
|
|
1370
|
+
return await self.delete_custom_domain_with_options_async(domain_name, headers, runtime)
|
|
1371
|
+
|
|
1166
1372
|
def delete_knowledge_base_with_options(
|
|
1167
1373
|
self,
|
|
1168
1374
|
knowledge_base_name: str,
|
|
@@ -1229,6 +1435,72 @@ class Client(OpenApiClient):
|
|
|
1229
1435
|
headers = {}
|
|
1230
1436
|
return await self.delete_knowledge_base_with_options_async(knowledge_base_name, headers, runtime)
|
|
1231
1437
|
|
|
1438
|
+
def delete_memory_collection_with_options(
|
|
1439
|
+
self,
|
|
1440
|
+
memory_collection_name: str,
|
|
1441
|
+
headers: Dict[str, str],
|
|
1442
|
+
runtime: RuntimeOptions,
|
|
1443
|
+
) -> main_models.DeleteMemoryCollectionResponse:
|
|
1444
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1445
|
+
headers = headers
|
|
1446
|
+
)
|
|
1447
|
+
params = open_api_util_models.Params(
|
|
1448
|
+
action = 'DeleteMemoryCollection',
|
|
1449
|
+
version = '2025-09-10',
|
|
1450
|
+
protocol = 'HTTPS',
|
|
1451
|
+
pathname = f'/2025-09-10/agents/memory-collections/{DaraURL.percent_encode(memory_collection_name)}',
|
|
1452
|
+
method = 'DELETE',
|
|
1453
|
+
auth_type = 'AK',
|
|
1454
|
+
style = 'ROA',
|
|
1455
|
+
req_body_type = 'json',
|
|
1456
|
+
body_type = 'json'
|
|
1457
|
+
)
|
|
1458
|
+
return DaraCore.from_map(
|
|
1459
|
+
main_models.DeleteMemoryCollectionResponse(),
|
|
1460
|
+
self.call_api(params, req, runtime)
|
|
1461
|
+
)
|
|
1462
|
+
|
|
1463
|
+
async def delete_memory_collection_with_options_async(
|
|
1464
|
+
self,
|
|
1465
|
+
memory_collection_name: str,
|
|
1466
|
+
headers: Dict[str, str],
|
|
1467
|
+
runtime: RuntimeOptions,
|
|
1468
|
+
) -> main_models.DeleteMemoryCollectionResponse:
|
|
1469
|
+
req = open_api_util_models.OpenApiRequest(
|
|
1470
|
+
headers = headers
|
|
1471
|
+
)
|
|
1472
|
+
params = open_api_util_models.Params(
|
|
1473
|
+
action = 'DeleteMemoryCollection',
|
|
1474
|
+
version = '2025-09-10',
|
|
1475
|
+
protocol = 'HTTPS',
|
|
1476
|
+
pathname = f'/2025-09-10/agents/memory-collections/{DaraURL.percent_encode(memory_collection_name)}',
|
|
1477
|
+
method = 'DELETE',
|
|
1478
|
+
auth_type = 'AK',
|
|
1479
|
+
style = 'ROA',
|
|
1480
|
+
req_body_type = 'json',
|
|
1481
|
+
body_type = 'json'
|
|
1482
|
+
)
|
|
1483
|
+
return DaraCore.from_map(
|
|
1484
|
+
main_models.DeleteMemoryCollectionResponse(),
|
|
1485
|
+
await self.call_api_async(params, req, runtime)
|
|
1486
|
+
)
|
|
1487
|
+
|
|
1488
|
+
def delete_memory_collection(
|
|
1489
|
+
self,
|
|
1490
|
+
memory_collection_name: str,
|
|
1491
|
+
) -> main_models.DeleteMemoryCollectionResponse:
|
|
1492
|
+
runtime = RuntimeOptions()
|
|
1493
|
+
headers = {}
|
|
1494
|
+
return self.delete_memory_collection_with_options(memory_collection_name, headers, runtime)
|
|
1495
|
+
|
|
1496
|
+
async def delete_memory_collection_async(
|
|
1497
|
+
self,
|
|
1498
|
+
memory_collection_name: str,
|
|
1499
|
+
) -> main_models.DeleteMemoryCollectionResponse:
|
|
1500
|
+
runtime = RuntimeOptions()
|
|
1501
|
+
headers = {}
|
|
1502
|
+
return await self.delete_memory_collection_with_options_async(memory_collection_name, headers, runtime)
|
|
1503
|
+
|
|
1232
1504
|
def delete_model_proxy_with_options(
|
|
1233
1505
|
self,
|
|
1234
1506
|
model_proxy_name: str,
|
|
@@ -1923,22 +2195,154 @@ class Client(OpenApiClient):
|
|
|
1923
2195
|
) -> main_models.GetCredentialResponse:
|
|
1924
2196
|
runtime = RuntimeOptions()
|
|
1925
2197
|
headers = {}
|
|
1926
|
-
return await self.get_credential_with_options_async(credential_name, headers, runtime)
|
|
2198
|
+
return await self.get_credential_with_options_async(credential_name, headers, runtime)
|
|
2199
|
+
|
|
2200
|
+
def get_custom_domain_with_options(
|
|
2201
|
+
self,
|
|
2202
|
+
domain_name: str,
|
|
2203
|
+
headers: Dict[str, str],
|
|
2204
|
+
runtime: RuntimeOptions,
|
|
2205
|
+
) -> main_models.GetCustomDomainResponse:
|
|
2206
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2207
|
+
headers = headers
|
|
2208
|
+
)
|
|
2209
|
+
params = open_api_util_models.Params(
|
|
2210
|
+
action = 'GetCustomDomain',
|
|
2211
|
+
version = '2025-09-10',
|
|
2212
|
+
protocol = 'HTTPS',
|
|
2213
|
+
pathname = f'/2025-09-10/agents/custom-domains/{DaraURL.percent_encode(domain_name)}',
|
|
2214
|
+
method = 'GET',
|
|
2215
|
+
auth_type = 'AK',
|
|
2216
|
+
style = 'ROA',
|
|
2217
|
+
req_body_type = 'json',
|
|
2218
|
+
body_type = 'json'
|
|
2219
|
+
)
|
|
2220
|
+
return DaraCore.from_map(
|
|
2221
|
+
main_models.GetCustomDomainResponse(),
|
|
2222
|
+
self.call_api(params, req, runtime)
|
|
2223
|
+
)
|
|
2224
|
+
|
|
2225
|
+
async def get_custom_domain_with_options_async(
|
|
2226
|
+
self,
|
|
2227
|
+
domain_name: str,
|
|
2228
|
+
headers: Dict[str, str],
|
|
2229
|
+
runtime: RuntimeOptions,
|
|
2230
|
+
) -> main_models.GetCustomDomainResponse:
|
|
2231
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2232
|
+
headers = headers
|
|
2233
|
+
)
|
|
2234
|
+
params = open_api_util_models.Params(
|
|
2235
|
+
action = 'GetCustomDomain',
|
|
2236
|
+
version = '2025-09-10',
|
|
2237
|
+
protocol = 'HTTPS',
|
|
2238
|
+
pathname = f'/2025-09-10/agents/custom-domains/{DaraURL.percent_encode(domain_name)}',
|
|
2239
|
+
method = 'GET',
|
|
2240
|
+
auth_type = 'AK',
|
|
2241
|
+
style = 'ROA',
|
|
2242
|
+
req_body_type = 'json',
|
|
2243
|
+
body_type = 'json'
|
|
2244
|
+
)
|
|
2245
|
+
return DaraCore.from_map(
|
|
2246
|
+
main_models.GetCustomDomainResponse(),
|
|
2247
|
+
await self.call_api_async(params, req, runtime)
|
|
2248
|
+
)
|
|
2249
|
+
|
|
2250
|
+
def get_custom_domain(
|
|
2251
|
+
self,
|
|
2252
|
+
domain_name: str,
|
|
2253
|
+
) -> main_models.GetCustomDomainResponse:
|
|
2254
|
+
runtime = RuntimeOptions()
|
|
2255
|
+
headers = {}
|
|
2256
|
+
return self.get_custom_domain_with_options(domain_name, headers, runtime)
|
|
2257
|
+
|
|
2258
|
+
async def get_custom_domain_async(
|
|
2259
|
+
self,
|
|
2260
|
+
domain_name: str,
|
|
2261
|
+
) -> main_models.GetCustomDomainResponse:
|
|
2262
|
+
runtime = RuntimeOptions()
|
|
2263
|
+
headers = {}
|
|
2264
|
+
return await self.get_custom_domain_with_options_async(domain_name, headers, runtime)
|
|
2265
|
+
|
|
2266
|
+
def get_knowledge_base_with_options(
|
|
2267
|
+
self,
|
|
2268
|
+
knowledge_base_name: str,
|
|
2269
|
+
headers: Dict[str, str],
|
|
2270
|
+
runtime: RuntimeOptions,
|
|
2271
|
+
) -> main_models.GetKnowledgeBaseResponse:
|
|
2272
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2273
|
+
headers = headers
|
|
2274
|
+
)
|
|
2275
|
+
params = open_api_util_models.Params(
|
|
2276
|
+
action = 'GetKnowledgeBase',
|
|
2277
|
+
version = '2025-09-10',
|
|
2278
|
+
protocol = 'HTTPS',
|
|
2279
|
+
pathname = f'/2025-09-10/agents/knowledgebases/{DaraURL.percent_encode(knowledge_base_name)}',
|
|
2280
|
+
method = 'GET',
|
|
2281
|
+
auth_type = 'AK',
|
|
2282
|
+
style = 'ROA',
|
|
2283
|
+
req_body_type = 'json',
|
|
2284
|
+
body_type = 'json'
|
|
2285
|
+
)
|
|
2286
|
+
return DaraCore.from_map(
|
|
2287
|
+
main_models.GetKnowledgeBaseResponse(),
|
|
2288
|
+
self.call_api(params, req, runtime)
|
|
2289
|
+
)
|
|
2290
|
+
|
|
2291
|
+
async def get_knowledge_base_with_options_async(
|
|
2292
|
+
self,
|
|
2293
|
+
knowledge_base_name: str,
|
|
2294
|
+
headers: Dict[str, str],
|
|
2295
|
+
runtime: RuntimeOptions,
|
|
2296
|
+
) -> main_models.GetKnowledgeBaseResponse:
|
|
2297
|
+
req = open_api_util_models.OpenApiRequest(
|
|
2298
|
+
headers = headers
|
|
2299
|
+
)
|
|
2300
|
+
params = open_api_util_models.Params(
|
|
2301
|
+
action = 'GetKnowledgeBase',
|
|
2302
|
+
version = '2025-09-10',
|
|
2303
|
+
protocol = 'HTTPS',
|
|
2304
|
+
pathname = f'/2025-09-10/agents/knowledgebases/{DaraURL.percent_encode(knowledge_base_name)}',
|
|
2305
|
+
method = 'GET',
|
|
2306
|
+
auth_type = 'AK',
|
|
2307
|
+
style = 'ROA',
|
|
2308
|
+
req_body_type = 'json',
|
|
2309
|
+
body_type = 'json'
|
|
2310
|
+
)
|
|
2311
|
+
return DaraCore.from_map(
|
|
2312
|
+
main_models.GetKnowledgeBaseResponse(),
|
|
2313
|
+
await self.call_api_async(params, req, runtime)
|
|
2314
|
+
)
|
|
2315
|
+
|
|
2316
|
+
def get_knowledge_base(
|
|
2317
|
+
self,
|
|
2318
|
+
knowledge_base_name: str,
|
|
2319
|
+
) -> main_models.GetKnowledgeBaseResponse:
|
|
2320
|
+
runtime = RuntimeOptions()
|
|
2321
|
+
headers = {}
|
|
2322
|
+
return self.get_knowledge_base_with_options(knowledge_base_name, headers, runtime)
|
|
2323
|
+
|
|
2324
|
+
async def get_knowledge_base_async(
|
|
2325
|
+
self,
|
|
2326
|
+
knowledge_base_name: str,
|
|
2327
|
+
) -> main_models.GetKnowledgeBaseResponse:
|
|
2328
|
+
runtime = RuntimeOptions()
|
|
2329
|
+
headers = {}
|
|
2330
|
+
return await self.get_knowledge_base_with_options_async(knowledge_base_name, headers, runtime)
|
|
1927
2331
|
|
|
1928
|
-
def
|
|
2332
|
+
def get_memory_collection_with_options(
|
|
1929
2333
|
self,
|
|
1930
|
-
|
|
2334
|
+
memory_collection_name: str,
|
|
1931
2335
|
headers: Dict[str, str],
|
|
1932
2336
|
runtime: RuntimeOptions,
|
|
1933
|
-
) -> main_models.
|
|
2337
|
+
) -> main_models.GetMemoryCollectionResponse:
|
|
1934
2338
|
req = open_api_util_models.OpenApiRequest(
|
|
1935
2339
|
headers = headers
|
|
1936
2340
|
)
|
|
1937
2341
|
params = open_api_util_models.Params(
|
|
1938
|
-
action = '
|
|
2342
|
+
action = 'GetMemoryCollection',
|
|
1939
2343
|
version = '2025-09-10',
|
|
1940
2344
|
protocol = 'HTTPS',
|
|
1941
|
-
pathname = f'/2025-09-10/agents/
|
|
2345
|
+
pathname = f'/2025-09-10/agents/memory-collections/{DaraURL.percent_encode(memory_collection_name)}',
|
|
1942
2346
|
method = 'GET',
|
|
1943
2347
|
auth_type = 'AK',
|
|
1944
2348
|
style = 'ROA',
|
|
@@ -1946,24 +2350,24 @@ class Client(OpenApiClient):
|
|
|
1946
2350
|
body_type = 'json'
|
|
1947
2351
|
)
|
|
1948
2352
|
return DaraCore.from_map(
|
|
1949
|
-
main_models.
|
|
2353
|
+
main_models.GetMemoryCollectionResponse(),
|
|
1950
2354
|
self.call_api(params, req, runtime)
|
|
1951
2355
|
)
|
|
1952
2356
|
|
|
1953
|
-
async def
|
|
2357
|
+
async def get_memory_collection_with_options_async(
|
|
1954
2358
|
self,
|
|
1955
|
-
|
|
2359
|
+
memory_collection_name: str,
|
|
1956
2360
|
headers: Dict[str, str],
|
|
1957
2361
|
runtime: RuntimeOptions,
|
|
1958
|
-
) -> main_models.
|
|
2362
|
+
) -> main_models.GetMemoryCollectionResponse:
|
|
1959
2363
|
req = open_api_util_models.OpenApiRequest(
|
|
1960
2364
|
headers = headers
|
|
1961
2365
|
)
|
|
1962
2366
|
params = open_api_util_models.Params(
|
|
1963
|
-
action = '
|
|
2367
|
+
action = 'GetMemoryCollection',
|
|
1964
2368
|
version = '2025-09-10',
|
|
1965
2369
|
protocol = 'HTTPS',
|
|
1966
|
-
pathname = f'/2025-09-10/agents/
|
|
2370
|
+
pathname = f'/2025-09-10/agents/memory-collections/{DaraURL.percent_encode(memory_collection_name)}',
|
|
1967
2371
|
method = 'GET',
|
|
1968
2372
|
auth_type = 'AK',
|
|
1969
2373
|
style = 'ROA',
|
|
@@ -1971,25 +2375,25 @@ class Client(OpenApiClient):
|
|
|
1971
2375
|
body_type = 'json'
|
|
1972
2376
|
)
|
|
1973
2377
|
return DaraCore.from_map(
|
|
1974
|
-
main_models.
|
|
2378
|
+
main_models.GetMemoryCollectionResponse(),
|
|
1975
2379
|
await self.call_api_async(params, req, runtime)
|
|
1976
2380
|
)
|
|
1977
2381
|
|
|
1978
|
-
def
|
|
2382
|
+
def get_memory_collection(
|
|
1979
2383
|
self,
|
|
1980
|
-
|
|
1981
|
-
) -> main_models.
|
|
2384
|
+
memory_collection_name: str,
|
|
2385
|
+
) -> main_models.GetMemoryCollectionResponse:
|
|
1982
2386
|
runtime = RuntimeOptions()
|
|
1983
2387
|
headers = {}
|
|
1984
|
-
return self.
|
|
2388
|
+
return self.get_memory_collection_with_options(memory_collection_name, headers, runtime)
|
|
1985
2389
|
|
|
1986
|
-
async def
|
|
2390
|
+
async def get_memory_collection_async(
|
|
1987
2391
|
self,
|
|
1988
|
-
|
|
1989
|
-
) -> main_models.
|
|
2392
|
+
memory_collection_name: str,
|
|
2393
|
+
) -> main_models.GetMemoryCollectionResponse:
|
|
1990
2394
|
runtime = RuntimeOptions()
|
|
1991
2395
|
headers = {}
|
|
1992
|
-
return await self.
|
|
2396
|
+
return await self.get_memory_collection_with_options_async(memory_collection_name, headers, runtime)
|
|
1993
2397
|
|
|
1994
2398
|
def get_model_proxy_with_options(
|
|
1995
2399
|
self,
|
|
@@ -2795,6 +3199,98 @@ class Client(OpenApiClient):
|
|
|
2795
3199
|
headers = {}
|
|
2796
3200
|
return await self.list_credentials_with_options_async(request, headers, runtime)
|
|
2797
3201
|
|
|
3202
|
+
def list_custom_domains_with_options(
|
|
3203
|
+
self,
|
|
3204
|
+
request: main_models.ListCustomDomainsRequest,
|
|
3205
|
+
headers: Dict[str, str],
|
|
3206
|
+
runtime: RuntimeOptions,
|
|
3207
|
+
) -> main_models.ListCustomDomainsResponse:
|
|
3208
|
+
request.validate()
|
|
3209
|
+
query = {}
|
|
3210
|
+
if not DaraCore.is_null(request.domain_name):
|
|
3211
|
+
query['domainName'] = request.domain_name
|
|
3212
|
+
if not DaraCore.is_null(request.page_number):
|
|
3213
|
+
query['pageNumber'] = request.page_number
|
|
3214
|
+
if not DaraCore.is_null(request.page_size):
|
|
3215
|
+
query['pageSize'] = request.page_size
|
|
3216
|
+
if not DaraCore.is_null(request.resource_name):
|
|
3217
|
+
query['resourceName'] = request.resource_name
|
|
3218
|
+
if not DaraCore.is_null(request.resource_type):
|
|
3219
|
+
query['resourceType'] = request.resource_type
|
|
3220
|
+
req = open_api_util_models.OpenApiRequest(
|
|
3221
|
+
headers = headers,
|
|
3222
|
+
query = Utils.query(query)
|
|
3223
|
+
)
|
|
3224
|
+
params = open_api_util_models.Params(
|
|
3225
|
+
action = 'ListCustomDomains',
|
|
3226
|
+
version = '2025-09-10',
|
|
3227
|
+
protocol = 'HTTPS',
|
|
3228
|
+
pathname = f'/2025-09-10/agents/custom-domains',
|
|
3229
|
+
method = 'GET',
|
|
3230
|
+
auth_type = 'AK',
|
|
3231
|
+
style = 'ROA',
|
|
3232
|
+
req_body_type = 'json',
|
|
3233
|
+
body_type = 'json'
|
|
3234
|
+
)
|
|
3235
|
+
return DaraCore.from_map(
|
|
3236
|
+
main_models.ListCustomDomainsResponse(),
|
|
3237
|
+
self.call_api(params, req, runtime)
|
|
3238
|
+
)
|
|
3239
|
+
|
|
3240
|
+
async def list_custom_domains_with_options_async(
|
|
3241
|
+
self,
|
|
3242
|
+
request: main_models.ListCustomDomainsRequest,
|
|
3243
|
+
headers: Dict[str, str],
|
|
3244
|
+
runtime: RuntimeOptions,
|
|
3245
|
+
) -> main_models.ListCustomDomainsResponse:
|
|
3246
|
+
request.validate()
|
|
3247
|
+
query = {}
|
|
3248
|
+
if not DaraCore.is_null(request.domain_name):
|
|
3249
|
+
query['domainName'] = request.domain_name
|
|
3250
|
+
if not DaraCore.is_null(request.page_number):
|
|
3251
|
+
query['pageNumber'] = request.page_number
|
|
3252
|
+
if not DaraCore.is_null(request.page_size):
|
|
3253
|
+
query['pageSize'] = request.page_size
|
|
3254
|
+
if not DaraCore.is_null(request.resource_name):
|
|
3255
|
+
query['resourceName'] = request.resource_name
|
|
3256
|
+
if not DaraCore.is_null(request.resource_type):
|
|
3257
|
+
query['resourceType'] = request.resource_type
|
|
3258
|
+
req = open_api_util_models.OpenApiRequest(
|
|
3259
|
+
headers = headers,
|
|
3260
|
+
query = Utils.query(query)
|
|
3261
|
+
)
|
|
3262
|
+
params = open_api_util_models.Params(
|
|
3263
|
+
action = 'ListCustomDomains',
|
|
3264
|
+
version = '2025-09-10',
|
|
3265
|
+
protocol = 'HTTPS',
|
|
3266
|
+
pathname = f'/2025-09-10/agents/custom-domains',
|
|
3267
|
+
method = 'GET',
|
|
3268
|
+
auth_type = 'AK',
|
|
3269
|
+
style = 'ROA',
|
|
3270
|
+
req_body_type = 'json',
|
|
3271
|
+
body_type = 'json'
|
|
3272
|
+
)
|
|
3273
|
+
return DaraCore.from_map(
|
|
3274
|
+
main_models.ListCustomDomainsResponse(),
|
|
3275
|
+
await self.call_api_async(params, req, runtime)
|
|
3276
|
+
)
|
|
3277
|
+
|
|
3278
|
+
def list_custom_domains(
|
|
3279
|
+
self,
|
|
3280
|
+
request: main_models.ListCustomDomainsRequest,
|
|
3281
|
+
) -> main_models.ListCustomDomainsResponse:
|
|
3282
|
+
runtime = RuntimeOptions()
|
|
3283
|
+
headers = {}
|
|
3284
|
+
return self.list_custom_domains_with_options(request, headers, runtime)
|
|
3285
|
+
|
|
3286
|
+
async def list_custom_domains_async(
|
|
3287
|
+
self,
|
|
3288
|
+
request: main_models.ListCustomDomainsRequest,
|
|
3289
|
+
) -> main_models.ListCustomDomainsResponse:
|
|
3290
|
+
runtime = RuntimeOptions()
|
|
3291
|
+
headers = {}
|
|
3292
|
+
return await self.list_custom_domains_with_options_async(request, headers, runtime)
|
|
3293
|
+
|
|
2798
3294
|
def list_knowledge_bases_with_options(
|
|
2799
3295
|
self,
|
|
2800
3296
|
request: main_models.ListKnowledgeBasesRequest,
|
|
@@ -2879,6 +3375,98 @@ class Client(OpenApiClient):
|
|
|
2879
3375
|
headers = {}
|
|
2880
3376
|
return await self.list_knowledge_bases_with_options_async(request, headers, runtime)
|
|
2881
3377
|
|
|
3378
|
+
def list_memory_collections_with_options(
|
|
3379
|
+
self,
|
|
3380
|
+
request: main_models.ListMemoryCollectionsRequest,
|
|
3381
|
+
headers: Dict[str, str],
|
|
3382
|
+
runtime: RuntimeOptions,
|
|
3383
|
+
) -> main_models.ListMemoryCollectionsResponse:
|
|
3384
|
+
request.validate()
|
|
3385
|
+
query = {}
|
|
3386
|
+
if not DaraCore.is_null(request.memory_collection_name):
|
|
3387
|
+
query['memoryCollectionName'] = request.memory_collection_name
|
|
3388
|
+
if not DaraCore.is_null(request.page_number):
|
|
3389
|
+
query['pageNumber'] = request.page_number
|
|
3390
|
+
if not DaraCore.is_null(request.page_size):
|
|
3391
|
+
query['pageSize'] = request.page_size
|
|
3392
|
+
if not DaraCore.is_null(request.status):
|
|
3393
|
+
query['status'] = request.status
|
|
3394
|
+
if not DaraCore.is_null(request.type):
|
|
3395
|
+
query['type'] = request.type
|
|
3396
|
+
req = open_api_util_models.OpenApiRequest(
|
|
3397
|
+
headers = headers,
|
|
3398
|
+
query = Utils.query(query)
|
|
3399
|
+
)
|
|
3400
|
+
params = open_api_util_models.Params(
|
|
3401
|
+
action = 'ListMemoryCollections',
|
|
3402
|
+
version = '2025-09-10',
|
|
3403
|
+
protocol = 'HTTPS',
|
|
3404
|
+
pathname = f'/2025-09-10/agents/memory-collections',
|
|
3405
|
+
method = 'GET',
|
|
3406
|
+
auth_type = 'AK',
|
|
3407
|
+
style = 'ROA',
|
|
3408
|
+
req_body_type = 'json',
|
|
3409
|
+
body_type = 'json'
|
|
3410
|
+
)
|
|
3411
|
+
return DaraCore.from_map(
|
|
3412
|
+
main_models.ListMemoryCollectionsResponse(),
|
|
3413
|
+
self.call_api(params, req, runtime)
|
|
3414
|
+
)
|
|
3415
|
+
|
|
3416
|
+
async def list_memory_collections_with_options_async(
|
|
3417
|
+
self,
|
|
3418
|
+
request: main_models.ListMemoryCollectionsRequest,
|
|
3419
|
+
headers: Dict[str, str],
|
|
3420
|
+
runtime: RuntimeOptions,
|
|
3421
|
+
) -> main_models.ListMemoryCollectionsResponse:
|
|
3422
|
+
request.validate()
|
|
3423
|
+
query = {}
|
|
3424
|
+
if not DaraCore.is_null(request.memory_collection_name):
|
|
3425
|
+
query['memoryCollectionName'] = request.memory_collection_name
|
|
3426
|
+
if not DaraCore.is_null(request.page_number):
|
|
3427
|
+
query['pageNumber'] = request.page_number
|
|
3428
|
+
if not DaraCore.is_null(request.page_size):
|
|
3429
|
+
query['pageSize'] = request.page_size
|
|
3430
|
+
if not DaraCore.is_null(request.status):
|
|
3431
|
+
query['status'] = request.status
|
|
3432
|
+
if not DaraCore.is_null(request.type):
|
|
3433
|
+
query['type'] = request.type
|
|
3434
|
+
req = open_api_util_models.OpenApiRequest(
|
|
3435
|
+
headers = headers,
|
|
3436
|
+
query = Utils.query(query)
|
|
3437
|
+
)
|
|
3438
|
+
params = open_api_util_models.Params(
|
|
3439
|
+
action = 'ListMemoryCollections',
|
|
3440
|
+
version = '2025-09-10',
|
|
3441
|
+
protocol = 'HTTPS',
|
|
3442
|
+
pathname = f'/2025-09-10/agents/memory-collections',
|
|
3443
|
+
method = 'GET',
|
|
3444
|
+
auth_type = 'AK',
|
|
3445
|
+
style = 'ROA',
|
|
3446
|
+
req_body_type = 'json',
|
|
3447
|
+
body_type = 'json'
|
|
3448
|
+
)
|
|
3449
|
+
return DaraCore.from_map(
|
|
3450
|
+
main_models.ListMemoryCollectionsResponse(),
|
|
3451
|
+
await self.call_api_async(params, req, runtime)
|
|
3452
|
+
)
|
|
3453
|
+
|
|
3454
|
+
def list_memory_collections(
|
|
3455
|
+
self,
|
|
3456
|
+
request: main_models.ListMemoryCollectionsRequest,
|
|
3457
|
+
) -> main_models.ListMemoryCollectionsResponse:
|
|
3458
|
+
runtime = RuntimeOptions()
|
|
3459
|
+
headers = {}
|
|
3460
|
+
return self.list_memory_collections_with_options(request, headers, runtime)
|
|
3461
|
+
|
|
3462
|
+
async def list_memory_collections_async(
|
|
3463
|
+
self,
|
|
3464
|
+
request: main_models.ListMemoryCollectionsRequest,
|
|
3465
|
+
) -> main_models.ListMemoryCollectionsResponse:
|
|
3466
|
+
runtime = RuntimeOptions()
|
|
3467
|
+
headers = {}
|
|
3468
|
+
return await self.list_memory_collections_with_options_async(request, headers, runtime)
|
|
3469
|
+
|
|
2882
3470
|
def list_model_providers_with_options(
|
|
2883
3471
|
self,
|
|
2884
3472
|
request: main_models.ListModelProvidersRequest,
|
|
@@ -3767,6 +4355,80 @@ class Client(OpenApiClient):
|
|
|
3767
4355
|
headers = {}
|
|
3768
4356
|
return await self.update_credential_with_options_async(credential_name, request, headers, runtime)
|
|
3769
4357
|
|
|
4358
|
+
def update_custom_domain_with_options(
|
|
4359
|
+
self,
|
|
4360
|
+
domain_name: str,
|
|
4361
|
+
request: main_models.UpdateCustomDomainRequest,
|
|
4362
|
+
headers: Dict[str, str],
|
|
4363
|
+
runtime: RuntimeOptions,
|
|
4364
|
+
) -> main_models.UpdateCustomDomainResponse:
|
|
4365
|
+
request.validate()
|
|
4366
|
+
req = open_api_util_models.OpenApiRequest(
|
|
4367
|
+
headers = headers,
|
|
4368
|
+
body = Utils.parse_to_map(request.body)
|
|
4369
|
+
)
|
|
4370
|
+
params = open_api_util_models.Params(
|
|
4371
|
+
action = 'UpdateCustomDomain',
|
|
4372
|
+
version = '2025-09-10',
|
|
4373
|
+
protocol = 'HTTPS',
|
|
4374
|
+
pathname = f'/2025-09-10/agents/custom-domains/{DaraURL.percent_encode(domain_name)}',
|
|
4375
|
+
method = 'PUT',
|
|
4376
|
+
auth_type = 'AK',
|
|
4377
|
+
style = 'ROA',
|
|
4378
|
+
req_body_type = 'json',
|
|
4379
|
+
body_type = 'json'
|
|
4380
|
+
)
|
|
4381
|
+
return DaraCore.from_map(
|
|
4382
|
+
main_models.UpdateCustomDomainResponse(),
|
|
4383
|
+
self.call_api(params, req, runtime)
|
|
4384
|
+
)
|
|
4385
|
+
|
|
4386
|
+
async def update_custom_domain_with_options_async(
|
|
4387
|
+
self,
|
|
4388
|
+
domain_name: str,
|
|
4389
|
+
request: main_models.UpdateCustomDomainRequest,
|
|
4390
|
+
headers: Dict[str, str],
|
|
4391
|
+
runtime: RuntimeOptions,
|
|
4392
|
+
) -> main_models.UpdateCustomDomainResponse:
|
|
4393
|
+
request.validate()
|
|
4394
|
+
req = open_api_util_models.OpenApiRequest(
|
|
4395
|
+
headers = headers,
|
|
4396
|
+
body = Utils.parse_to_map(request.body)
|
|
4397
|
+
)
|
|
4398
|
+
params = open_api_util_models.Params(
|
|
4399
|
+
action = 'UpdateCustomDomain',
|
|
4400
|
+
version = '2025-09-10',
|
|
4401
|
+
protocol = 'HTTPS',
|
|
4402
|
+
pathname = f'/2025-09-10/agents/custom-domains/{DaraURL.percent_encode(domain_name)}',
|
|
4403
|
+
method = 'PUT',
|
|
4404
|
+
auth_type = 'AK',
|
|
4405
|
+
style = 'ROA',
|
|
4406
|
+
req_body_type = 'json',
|
|
4407
|
+
body_type = 'json'
|
|
4408
|
+
)
|
|
4409
|
+
return DaraCore.from_map(
|
|
4410
|
+
main_models.UpdateCustomDomainResponse(),
|
|
4411
|
+
await self.call_api_async(params, req, runtime)
|
|
4412
|
+
)
|
|
4413
|
+
|
|
4414
|
+
def update_custom_domain(
|
|
4415
|
+
self,
|
|
4416
|
+
domain_name: str,
|
|
4417
|
+
request: main_models.UpdateCustomDomainRequest,
|
|
4418
|
+
) -> main_models.UpdateCustomDomainResponse:
|
|
4419
|
+
runtime = RuntimeOptions()
|
|
4420
|
+
headers = {}
|
|
4421
|
+
return self.update_custom_domain_with_options(domain_name, request, headers, runtime)
|
|
4422
|
+
|
|
4423
|
+
async def update_custom_domain_async(
|
|
4424
|
+
self,
|
|
4425
|
+
domain_name: str,
|
|
4426
|
+
request: main_models.UpdateCustomDomainRequest,
|
|
4427
|
+
) -> main_models.UpdateCustomDomainResponse:
|
|
4428
|
+
runtime = RuntimeOptions()
|
|
4429
|
+
headers = {}
|
|
4430
|
+
return await self.update_custom_domain_with_options_async(domain_name, request, headers, runtime)
|
|
4431
|
+
|
|
3770
4432
|
def update_knowledge_base_with_options(
|
|
3771
4433
|
self,
|
|
3772
4434
|
knowledge_base_name: str,
|
|
@@ -3841,6 +4503,80 @@ class Client(OpenApiClient):
|
|
|
3841
4503
|
headers = {}
|
|
3842
4504
|
return await self.update_knowledge_base_with_options_async(knowledge_base_name, request, headers, runtime)
|
|
3843
4505
|
|
|
4506
|
+
def update_memory_collection_with_options(
|
|
4507
|
+
self,
|
|
4508
|
+
memory_collection_name: str,
|
|
4509
|
+
request: main_models.UpdateMemoryCollectionRequest,
|
|
4510
|
+
headers: Dict[str, str],
|
|
4511
|
+
runtime: RuntimeOptions,
|
|
4512
|
+
) -> main_models.UpdateMemoryCollectionResponse:
|
|
4513
|
+
request.validate()
|
|
4514
|
+
req = open_api_util_models.OpenApiRequest(
|
|
4515
|
+
headers = headers,
|
|
4516
|
+
body = Utils.parse_to_map(request.body)
|
|
4517
|
+
)
|
|
4518
|
+
params = open_api_util_models.Params(
|
|
4519
|
+
action = 'UpdateMemoryCollection',
|
|
4520
|
+
version = '2025-09-10',
|
|
4521
|
+
protocol = 'HTTPS',
|
|
4522
|
+
pathname = f'/2025-09-10/agents/memory-collections/{DaraURL.percent_encode(memory_collection_name)}',
|
|
4523
|
+
method = 'PUT',
|
|
4524
|
+
auth_type = 'AK',
|
|
4525
|
+
style = 'ROA',
|
|
4526
|
+
req_body_type = 'json',
|
|
4527
|
+
body_type = 'json'
|
|
4528
|
+
)
|
|
4529
|
+
return DaraCore.from_map(
|
|
4530
|
+
main_models.UpdateMemoryCollectionResponse(),
|
|
4531
|
+
self.call_api(params, req, runtime)
|
|
4532
|
+
)
|
|
4533
|
+
|
|
4534
|
+
async def update_memory_collection_with_options_async(
|
|
4535
|
+
self,
|
|
4536
|
+
memory_collection_name: str,
|
|
4537
|
+
request: main_models.UpdateMemoryCollectionRequest,
|
|
4538
|
+
headers: Dict[str, str],
|
|
4539
|
+
runtime: RuntimeOptions,
|
|
4540
|
+
) -> main_models.UpdateMemoryCollectionResponse:
|
|
4541
|
+
request.validate()
|
|
4542
|
+
req = open_api_util_models.OpenApiRequest(
|
|
4543
|
+
headers = headers,
|
|
4544
|
+
body = Utils.parse_to_map(request.body)
|
|
4545
|
+
)
|
|
4546
|
+
params = open_api_util_models.Params(
|
|
4547
|
+
action = 'UpdateMemoryCollection',
|
|
4548
|
+
version = '2025-09-10',
|
|
4549
|
+
protocol = 'HTTPS',
|
|
4550
|
+
pathname = f'/2025-09-10/agents/memory-collections/{DaraURL.percent_encode(memory_collection_name)}',
|
|
4551
|
+
method = 'PUT',
|
|
4552
|
+
auth_type = 'AK',
|
|
4553
|
+
style = 'ROA',
|
|
4554
|
+
req_body_type = 'json',
|
|
4555
|
+
body_type = 'json'
|
|
4556
|
+
)
|
|
4557
|
+
return DaraCore.from_map(
|
|
4558
|
+
main_models.UpdateMemoryCollectionResponse(),
|
|
4559
|
+
await self.call_api_async(params, req, runtime)
|
|
4560
|
+
)
|
|
4561
|
+
|
|
4562
|
+
def update_memory_collection(
|
|
4563
|
+
self,
|
|
4564
|
+
memory_collection_name: str,
|
|
4565
|
+
request: main_models.UpdateMemoryCollectionRequest,
|
|
4566
|
+
) -> main_models.UpdateMemoryCollectionResponse:
|
|
4567
|
+
runtime = RuntimeOptions()
|
|
4568
|
+
headers = {}
|
|
4569
|
+
return self.update_memory_collection_with_options(memory_collection_name, request, headers, runtime)
|
|
4570
|
+
|
|
4571
|
+
async def update_memory_collection_async(
|
|
4572
|
+
self,
|
|
4573
|
+
memory_collection_name: str,
|
|
4574
|
+
request: main_models.UpdateMemoryCollectionRequest,
|
|
4575
|
+
) -> main_models.UpdateMemoryCollectionResponse:
|
|
4576
|
+
runtime = RuntimeOptions()
|
|
4577
|
+
headers = {}
|
|
4578
|
+
return await self.update_memory_collection_with_options_async(memory_collection_name, request, headers, runtime)
|
|
4579
|
+
|
|
3844
4580
|
def update_model_proxy_with_options(
|
|
3845
4581
|
self,
|
|
3846
4582
|
model_proxy_name: str,
|