alibabacloud-agentrun20250910 1.0.0__py3-none-any.whl → 2.0.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.
@@ -469,6 +469,234 @@ class Client(OpenApiClient):
469
469
  headers = {}
470
470
  return await self.create_code_interpreter_with_options_async(request, headers, runtime)
471
471
 
472
+ def create_memory_with_options(
473
+ self,
474
+ request: agent_run_20250910_models.CreateMemoryRequest,
475
+ headers: Dict[str, str],
476
+ runtime: util_models.RuntimeOptions,
477
+ ) -> agent_run_20250910_models.CreateMemoryResponse:
478
+ """
479
+ @summary create memory store
480
+
481
+ @param request: CreateMemoryRequest
482
+ @param headers: map
483
+ @param runtime: runtime options for this request RuntimeOptions
484
+ @return: CreateMemoryResponse
485
+ """
486
+ UtilClient.validate_model(request)
487
+ body = {}
488
+ if not UtilClient.is_unset(request.long_ttl):
489
+ body['longTtl'] = request.long_ttl
490
+ if not UtilClient.is_unset(request.name):
491
+ body['name'] = request.name
492
+ if not UtilClient.is_unset(request.permanent):
493
+ body['permanent'] = request.permanent
494
+ if not UtilClient.is_unset(request.short_ttl):
495
+ body['shortTtl'] = request.short_ttl
496
+ if not UtilClient.is_unset(request.strategy):
497
+ body['strategy'] = request.strategy
498
+ req = open_api_models.OpenApiRequest(
499
+ headers=headers,
500
+ body=OpenApiUtilClient.parse_to_map(body)
501
+ )
502
+ params = open_api_models.Params(
503
+ action='CreateMemory',
504
+ version='2025-09-10',
505
+ protocol='HTTPS',
506
+ pathname=f'/2025-09-10/agents/memories',
507
+ method='POST',
508
+ auth_type='AK',
509
+ style='ROA',
510
+ req_body_type='json',
511
+ body_type='json'
512
+ )
513
+ return TeaCore.from_map(
514
+ agent_run_20250910_models.CreateMemoryResponse(),
515
+ self.call_api(params, req, runtime)
516
+ )
517
+
518
+ async def create_memory_with_options_async(
519
+ self,
520
+ request: agent_run_20250910_models.CreateMemoryRequest,
521
+ headers: Dict[str, str],
522
+ runtime: util_models.RuntimeOptions,
523
+ ) -> agent_run_20250910_models.CreateMemoryResponse:
524
+ """
525
+ @summary create memory store
526
+
527
+ @param request: CreateMemoryRequest
528
+ @param headers: map
529
+ @param runtime: runtime options for this request RuntimeOptions
530
+ @return: CreateMemoryResponse
531
+ """
532
+ UtilClient.validate_model(request)
533
+ body = {}
534
+ if not UtilClient.is_unset(request.long_ttl):
535
+ body['longTtl'] = request.long_ttl
536
+ if not UtilClient.is_unset(request.name):
537
+ body['name'] = request.name
538
+ if not UtilClient.is_unset(request.permanent):
539
+ body['permanent'] = request.permanent
540
+ if not UtilClient.is_unset(request.short_ttl):
541
+ body['shortTtl'] = request.short_ttl
542
+ if not UtilClient.is_unset(request.strategy):
543
+ body['strategy'] = request.strategy
544
+ req = open_api_models.OpenApiRequest(
545
+ headers=headers,
546
+ body=OpenApiUtilClient.parse_to_map(body)
547
+ )
548
+ params = open_api_models.Params(
549
+ action='CreateMemory',
550
+ version='2025-09-10',
551
+ protocol='HTTPS',
552
+ pathname=f'/2025-09-10/agents/memories',
553
+ method='POST',
554
+ auth_type='AK',
555
+ style='ROA',
556
+ req_body_type='json',
557
+ body_type='json'
558
+ )
559
+ return TeaCore.from_map(
560
+ agent_run_20250910_models.CreateMemoryResponse(),
561
+ await self.call_api_async(params, req, runtime)
562
+ )
563
+
564
+ def create_memory(
565
+ self,
566
+ request: agent_run_20250910_models.CreateMemoryRequest,
567
+ ) -> agent_run_20250910_models.CreateMemoryResponse:
568
+ """
569
+ @summary create memory store
570
+
571
+ @param request: CreateMemoryRequest
572
+ @return: CreateMemoryResponse
573
+ """
574
+ runtime = util_models.RuntimeOptions()
575
+ headers = {}
576
+ return self.create_memory_with_options(request, headers, runtime)
577
+
578
+ async def create_memory_async(
579
+ self,
580
+ request: agent_run_20250910_models.CreateMemoryRequest,
581
+ ) -> agent_run_20250910_models.CreateMemoryResponse:
582
+ """
583
+ @summary create memory store
584
+
585
+ @param request: CreateMemoryRequest
586
+ @return: CreateMemoryResponse
587
+ """
588
+ runtime = util_models.RuntimeOptions()
589
+ headers = {}
590
+ return await self.create_memory_with_options_async(request, headers, runtime)
591
+
592
+ def create_memory_event_with_options(
593
+ self,
594
+ memory_name: str,
595
+ request: agent_run_20250910_models.CreateMemoryEventRequest,
596
+ headers: Dict[str, str],
597
+ runtime: util_models.RuntimeOptions,
598
+ ) -> agent_run_20250910_models.CreateMemoryEventResponse:
599
+ """
600
+ @summary create event
601
+
602
+ @param request: CreateMemoryEventRequest
603
+ @param headers: map
604
+ @param runtime: runtime options for this request RuntimeOptions
605
+ @return: CreateMemoryEventResponse
606
+ """
607
+ UtilClient.validate_model(request)
608
+ body = {}
609
+ if not UtilClient.is_unset(request.events):
610
+ body['events'] = request.events
611
+ req = open_api_models.OpenApiRequest(
612
+ headers=headers,
613
+ body=OpenApiUtilClient.parse_to_map(body)
614
+ )
615
+ params = open_api_models.Params(
616
+ action='CreateMemoryEvent',
617
+ version='2025-09-10',
618
+ protocol='HTTPS',
619
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}/events',
620
+ method='POST',
621
+ auth_type='AK',
622
+ style='ROA',
623
+ req_body_type='json',
624
+ body_type='json'
625
+ )
626
+ return TeaCore.from_map(
627
+ agent_run_20250910_models.CreateMemoryEventResponse(),
628
+ self.call_api(params, req, runtime)
629
+ )
630
+
631
+ async def create_memory_event_with_options_async(
632
+ self,
633
+ memory_name: str,
634
+ request: agent_run_20250910_models.CreateMemoryEventRequest,
635
+ headers: Dict[str, str],
636
+ runtime: util_models.RuntimeOptions,
637
+ ) -> agent_run_20250910_models.CreateMemoryEventResponse:
638
+ """
639
+ @summary create event
640
+
641
+ @param request: CreateMemoryEventRequest
642
+ @param headers: map
643
+ @param runtime: runtime options for this request RuntimeOptions
644
+ @return: CreateMemoryEventResponse
645
+ """
646
+ UtilClient.validate_model(request)
647
+ body = {}
648
+ if not UtilClient.is_unset(request.events):
649
+ body['events'] = request.events
650
+ req = open_api_models.OpenApiRequest(
651
+ headers=headers,
652
+ body=OpenApiUtilClient.parse_to_map(body)
653
+ )
654
+ params = open_api_models.Params(
655
+ action='CreateMemoryEvent',
656
+ version='2025-09-10',
657
+ protocol='HTTPS',
658
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}/events',
659
+ method='POST',
660
+ auth_type='AK',
661
+ style='ROA',
662
+ req_body_type='json',
663
+ body_type='json'
664
+ )
665
+ return TeaCore.from_map(
666
+ agent_run_20250910_models.CreateMemoryEventResponse(),
667
+ await self.call_api_async(params, req, runtime)
668
+ )
669
+
670
+ def create_memory_event(
671
+ self,
672
+ memory_name: str,
673
+ request: agent_run_20250910_models.CreateMemoryEventRequest,
674
+ ) -> agent_run_20250910_models.CreateMemoryEventResponse:
675
+ """
676
+ @summary create event
677
+
678
+ @param request: CreateMemoryEventRequest
679
+ @return: CreateMemoryEventResponse
680
+ """
681
+ runtime = util_models.RuntimeOptions()
682
+ headers = {}
683
+ return self.create_memory_event_with_options(memory_name, request, headers, runtime)
684
+
685
+ async def create_memory_event_async(
686
+ self,
687
+ memory_name: str,
688
+ request: agent_run_20250910_models.CreateMemoryEventRequest,
689
+ ) -> agent_run_20250910_models.CreateMemoryEventResponse:
690
+ """
691
+ @summary create event
692
+
693
+ @param request: CreateMemoryEventRequest
694
+ @return: CreateMemoryEventResponse
695
+ """
696
+ runtime = util_models.RuntimeOptions()
697
+ headers = {}
698
+ return await self.create_memory_event_with_options_async(memory_name, request, headers, runtime)
699
+
472
700
  def delete_agent_runtime_with_options(
473
701
  self,
474
702
  agent_runtime_id: str,
@@ -857,6 +1085,96 @@ class Client(OpenApiClient):
857
1085
  headers = {}
858
1086
  return await self.delete_code_interpreter_with_options_async(code_interpreter_id, headers, runtime)
859
1087
 
1088
+ def delete_memory_with_options(
1089
+ self,
1090
+ memory_name: str,
1091
+ headers: Dict[str, str],
1092
+ runtime: util_models.RuntimeOptions,
1093
+ ) -> agent_run_20250910_models.DeleteMemoryResponse:
1094
+ """
1095
+ @summary delete memory store
1096
+
1097
+ @param headers: map
1098
+ @param runtime: runtime options for this request RuntimeOptions
1099
+ @return: DeleteMemoryResponse
1100
+ """
1101
+ req = open_api_models.OpenApiRequest(
1102
+ headers=headers
1103
+ )
1104
+ params = open_api_models.Params(
1105
+ action='DeleteMemory',
1106
+ version='2025-09-10',
1107
+ protocol='HTTPS',
1108
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}',
1109
+ method='DELETE',
1110
+ auth_type='AK',
1111
+ style='ROA',
1112
+ req_body_type='json',
1113
+ body_type='json'
1114
+ )
1115
+ return TeaCore.from_map(
1116
+ agent_run_20250910_models.DeleteMemoryResponse(),
1117
+ self.call_api(params, req, runtime)
1118
+ )
1119
+
1120
+ async def delete_memory_with_options_async(
1121
+ self,
1122
+ memory_name: str,
1123
+ headers: Dict[str, str],
1124
+ runtime: util_models.RuntimeOptions,
1125
+ ) -> agent_run_20250910_models.DeleteMemoryResponse:
1126
+ """
1127
+ @summary delete memory store
1128
+
1129
+ @param headers: map
1130
+ @param runtime: runtime options for this request RuntimeOptions
1131
+ @return: DeleteMemoryResponse
1132
+ """
1133
+ req = open_api_models.OpenApiRequest(
1134
+ headers=headers
1135
+ )
1136
+ params = open_api_models.Params(
1137
+ action='DeleteMemory',
1138
+ version='2025-09-10',
1139
+ protocol='HTTPS',
1140
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}',
1141
+ method='DELETE',
1142
+ auth_type='AK',
1143
+ style='ROA',
1144
+ req_body_type='json',
1145
+ body_type='json'
1146
+ )
1147
+ return TeaCore.from_map(
1148
+ agent_run_20250910_models.DeleteMemoryResponse(),
1149
+ await self.call_api_async(params, req, runtime)
1150
+ )
1151
+
1152
+ def delete_memory(
1153
+ self,
1154
+ memory_name: str,
1155
+ ) -> agent_run_20250910_models.DeleteMemoryResponse:
1156
+ """
1157
+ @summary delete memory store
1158
+
1159
+ @return: DeleteMemoryResponse
1160
+ """
1161
+ runtime = util_models.RuntimeOptions()
1162
+ headers = {}
1163
+ return self.delete_memory_with_options(memory_name, headers, runtime)
1164
+
1165
+ async def delete_memory_async(
1166
+ self,
1167
+ memory_name: str,
1168
+ ) -> agent_run_20250910_models.DeleteMemoryResponse:
1169
+ """
1170
+ @summary delete memory store
1171
+
1172
+ @return: DeleteMemoryResponse
1173
+ """
1174
+ runtime = util_models.RuntimeOptions()
1175
+ headers = {}
1176
+ return await self.delete_memory_with_options_async(memory_name, headers, runtime)
1177
+
860
1178
  def get_agent_runtime_with_options(
861
1179
  self,
862
1180
  agent_runtime_id: str,
@@ -1263,40 +1581,27 @@ class Client(OpenApiClient):
1263
1581
  headers = {}
1264
1582
  return await self.get_code_interpreter_with_options_async(code_interpreter_id, headers, runtime)
1265
1583
 
1266
- def list_agent_runtime_endpoints_with_options(
1584
+ def get_memory_with_options(
1267
1585
  self,
1268
- agent_runtime_id: str,
1269
- request: agent_run_20250910_models.ListAgentRuntimeEndpointsRequest,
1586
+ memory_name: str,
1270
1587
  headers: Dict[str, str],
1271
1588
  runtime: util_models.RuntimeOptions,
1272
- ) -> agent_run_20250910_models.ListAgentRuntimeEndpointsResponse:
1589
+ ) -> agent_run_20250910_models.GetMemoryResponse:
1273
1590
  """
1274
- @summary 列出智能体运行时端点
1275
-
1276
- @description 获取指定智能体运行时的所有端点列表,支持按名称过滤和分页查询。端点用于外部系统访问智能体运行时服务。
1591
+ @summary GetMemory
1277
1592
 
1278
- @param request: ListAgentRuntimeEndpointsRequest
1279
1593
  @param headers: map
1280
1594
  @param runtime: runtime options for this request RuntimeOptions
1281
- @return: ListAgentRuntimeEndpointsResponse
1595
+ @return: GetMemoryResponse
1282
1596
  """
1283
- UtilClient.validate_model(request)
1284
- query = {}
1285
- if not UtilClient.is_unset(request.endpoint_name):
1286
- query['endpointName'] = request.endpoint_name
1287
- if not UtilClient.is_unset(request.page_number):
1288
- query['pageNumber'] = request.page_number
1289
- if not UtilClient.is_unset(request.page_size):
1290
- query['pageSize'] = request.page_size
1291
1597
  req = open_api_models.OpenApiRequest(
1292
- headers=headers,
1293
- query=OpenApiUtilClient.query(query)
1598
+ headers=headers
1294
1599
  )
1295
1600
  params = open_api_models.Params(
1296
- action='ListAgentRuntimeEndpoints',
1601
+ action='GetMemory',
1297
1602
  version='2025-09-10',
1298
1603
  protocol='HTTPS',
1299
- pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/endpoints',
1604
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}',
1300
1605
  method='GET',
1301
1606
  auth_type='AK',
1302
1607
  style='ROA',
@@ -1304,44 +1609,31 @@ class Client(OpenApiClient):
1304
1609
  body_type='json'
1305
1610
  )
1306
1611
  return TeaCore.from_map(
1307
- agent_run_20250910_models.ListAgentRuntimeEndpointsResponse(),
1612
+ agent_run_20250910_models.GetMemoryResponse(),
1308
1613
  self.call_api(params, req, runtime)
1309
1614
  )
1310
1615
 
1311
- async def list_agent_runtime_endpoints_with_options_async(
1616
+ async def get_memory_with_options_async(
1312
1617
  self,
1313
- agent_runtime_id: str,
1314
- request: agent_run_20250910_models.ListAgentRuntimeEndpointsRequest,
1618
+ memory_name: str,
1315
1619
  headers: Dict[str, str],
1316
1620
  runtime: util_models.RuntimeOptions,
1317
- ) -> agent_run_20250910_models.ListAgentRuntimeEndpointsResponse:
1621
+ ) -> agent_run_20250910_models.GetMemoryResponse:
1318
1622
  """
1319
- @summary 列出智能体运行时端点
1320
-
1321
- @description 获取指定智能体运行时的所有端点列表,支持按名称过滤和分页查询。端点用于外部系统访问智能体运行时服务。
1623
+ @summary GetMemory
1322
1624
 
1323
- @param request: ListAgentRuntimeEndpointsRequest
1324
1625
  @param headers: map
1325
1626
  @param runtime: runtime options for this request RuntimeOptions
1326
- @return: ListAgentRuntimeEndpointsResponse
1627
+ @return: GetMemoryResponse
1327
1628
  """
1328
- UtilClient.validate_model(request)
1329
- query = {}
1330
- if not UtilClient.is_unset(request.endpoint_name):
1331
- query['endpointName'] = request.endpoint_name
1332
- if not UtilClient.is_unset(request.page_number):
1333
- query['pageNumber'] = request.page_number
1334
- if not UtilClient.is_unset(request.page_size):
1335
- query['pageSize'] = request.page_size
1336
1629
  req = open_api_models.OpenApiRequest(
1337
- headers=headers,
1338
- query=OpenApiUtilClient.query(query)
1630
+ headers=headers
1339
1631
  )
1340
1632
  params = open_api_models.Params(
1341
- action='ListAgentRuntimeEndpoints',
1633
+ action='GetMemory',
1342
1634
  version='2025-09-10',
1343
1635
  protocol='HTTPS',
1344
- pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/endpoints',
1636
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}',
1345
1637
  method='GET',
1346
1638
  auth_type='AK',
1347
1639
  style='ROA',
@@ -1349,61 +1641,305 @@ class Client(OpenApiClient):
1349
1641
  body_type='json'
1350
1642
  )
1351
1643
  return TeaCore.from_map(
1352
- agent_run_20250910_models.ListAgentRuntimeEndpointsResponse(),
1644
+ agent_run_20250910_models.GetMemoryResponse(),
1353
1645
  await self.call_api_async(params, req, runtime)
1354
1646
  )
1355
1647
 
1356
- def list_agent_runtime_endpoints(
1648
+ def get_memory(
1357
1649
  self,
1358
- agent_runtime_id: str,
1359
- request: agent_run_20250910_models.ListAgentRuntimeEndpointsRequest,
1360
- ) -> agent_run_20250910_models.ListAgentRuntimeEndpointsResponse:
1650
+ memory_name: str,
1651
+ ) -> agent_run_20250910_models.GetMemoryResponse:
1361
1652
  """
1362
- @summary 列出智能体运行时端点
1363
-
1364
- @description 获取指定智能体运行时的所有端点列表,支持按名称过滤和分页查询。端点用于外部系统访问智能体运行时服务。
1653
+ @summary GetMemory
1365
1654
 
1366
- @param request: ListAgentRuntimeEndpointsRequest
1367
- @return: ListAgentRuntimeEndpointsResponse
1655
+ @return: GetMemoryResponse
1368
1656
  """
1369
1657
  runtime = util_models.RuntimeOptions()
1370
1658
  headers = {}
1371
- return self.list_agent_runtime_endpoints_with_options(agent_runtime_id, request, headers, runtime)
1659
+ return self.get_memory_with_options(memory_name, headers, runtime)
1372
1660
 
1373
- async def list_agent_runtime_endpoints_async(
1661
+ async def get_memory_async(
1374
1662
  self,
1375
- agent_runtime_id: str,
1376
- request: agent_run_20250910_models.ListAgentRuntimeEndpointsRequest,
1377
- ) -> agent_run_20250910_models.ListAgentRuntimeEndpointsResponse:
1663
+ memory_name: str,
1664
+ ) -> agent_run_20250910_models.GetMemoryResponse:
1378
1665
  """
1379
- @summary 列出智能体运行时端点
1380
-
1381
- @description 获取指定智能体运行时的所有端点列表,支持按名称过滤和分页查询。端点用于外部系统访问智能体运行时服务。
1666
+ @summary GetMemory
1382
1667
 
1383
- @param request: ListAgentRuntimeEndpointsRequest
1384
- @return: ListAgentRuntimeEndpointsResponse
1668
+ @return: GetMemoryResponse
1385
1669
  """
1386
1670
  runtime = util_models.RuntimeOptions()
1387
1671
  headers = {}
1388
- return await self.list_agent_runtime_endpoints_with_options_async(agent_runtime_id, request, headers, runtime)
1672
+ return await self.get_memory_with_options_async(memory_name, headers, runtime)
1389
1673
 
1390
- def list_agent_runtime_versions_with_options(
1674
+ def get_memory_event_with_options(
1675
+ self,
1676
+ memory_name: str,
1677
+ session_id: str,
1678
+ event_id: str,
1679
+ request: agent_run_20250910_models.GetMemoryEventRequest,
1680
+ headers: Dict[str, str],
1681
+ runtime: util_models.RuntimeOptions,
1682
+ ) -> agent_run_20250910_models.GetMemoryEventResponse:
1683
+ """
1684
+ @summary get event
1685
+
1686
+ @param request: GetMemoryEventRequest
1687
+ @param headers: map
1688
+ @param runtime: runtime options for this request RuntimeOptions
1689
+ @return: GetMemoryEventResponse
1690
+ """
1691
+ UtilClient.validate_model(request)
1692
+ query = {}
1693
+ if not UtilClient.is_unset(request.from_):
1694
+ query['from'] = request.from_
1695
+ if not UtilClient.is_unset(request.to):
1696
+ query['to'] = request.to
1697
+ req = open_api_models.OpenApiRequest(
1698
+ headers=headers,
1699
+ query=OpenApiUtilClient.query(query)
1700
+ )
1701
+ params = open_api_models.Params(
1702
+ action='GetMemoryEvent',
1703
+ version='2025-09-10',
1704
+ protocol='HTTPS',
1705
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}/sessions/{OpenApiUtilClient.get_encode_param(session_id)}/events/{OpenApiUtilClient.get_encode_param(event_id)}',
1706
+ method='GET',
1707
+ auth_type='AK',
1708
+ style='ROA',
1709
+ req_body_type='json',
1710
+ body_type='json'
1711
+ )
1712
+ return TeaCore.from_map(
1713
+ agent_run_20250910_models.GetMemoryEventResponse(),
1714
+ self.call_api(params, req, runtime)
1715
+ )
1716
+
1717
+ async def get_memory_event_with_options_async(
1718
+ self,
1719
+ memory_name: str,
1720
+ session_id: str,
1721
+ event_id: str,
1722
+ request: agent_run_20250910_models.GetMemoryEventRequest,
1723
+ headers: Dict[str, str],
1724
+ runtime: util_models.RuntimeOptions,
1725
+ ) -> agent_run_20250910_models.GetMemoryEventResponse:
1726
+ """
1727
+ @summary get event
1728
+
1729
+ @param request: GetMemoryEventRequest
1730
+ @param headers: map
1731
+ @param runtime: runtime options for this request RuntimeOptions
1732
+ @return: GetMemoryEventResponse
1733
+ """
1734
+ UtilClient.validate_model(request)
1735
+ query = {}
1736
+ if not UtilClient.is_unset(request.from_):
1737
+ query['from'] = request.from_
1738
+ if not UtilClient.is_unset(request.to):
1739
+ query['to'] = request.to
1740
+ req = open_api_models.OpenApiRequest(
1741
+ headers=headers,
1742
+ query=OpenApiUtilClient.query(query)
1743
+ )
1744
+ params = open_api_models.Params(
1745
+ action='GetMemoryEvent',
1746
+ version='2025-09-10',
1747
+ protocol='HTTPS',
1748
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}/sessions/{OpenApiUtilClient.get_encode_param(session_id)}/events/{OpenApiUtilClient.get_encode_param(event_id)}',
1749
+ method='GET',
1750
+ auth_type='AK',
1751
+ style='ROA',
1752
+ req_body_type='json',
1753
+ body_type='json'
1754
+ )
1755
+ return TeaCore.from_map(
1756
+ agent_run_20250910_models.GetMemoryEventResponse(),
1757
+ await self.call_api_async(params, req, runtime)
1758
+ )
1759
+
1760
+ def get_memory_event(
1761
+ self,
1762
+ memory_name: str,
1763
+ session_id: str,
1764
+ event_id: str,
1765
+ request: agent_run_20250910_models.GetMemoryEventRequest,
1766
+ ) -> agent_run_20250910_models.GetMemoryEventResponse:
1767
+ """
1768
+ @summary get event
1769
+
1770
+ @param request: GetMemoryEventRequest
1771
+ @return: GetMemoryEventResponse
1772
+ """
1773
+ runtime = util_models.RuntimeOptions()
1774
+ headers = {}
1775
+ return self.get_memory_event_with_options(memory_name, session_id, event_id, request, headers, runtime)
1776
+
1777
+ async def get_memory_event_async(
1778
+ self,
1779
+ memory_name: str,
1780
+ session_id: str,
1781
+ event_id: str,
1782
+ request: agent_run_20250910_models.GetMemoryEventRequest,
1783
+ ) -> agent_run_20250910_models.GetMemoryEventResponse:
1784
+ """
1785
+ @summary get event
1786
+
1787
+ @param request: GetMemoryEventRequest
1788
+ @return: GetMemoryEventResponse
1789
+ """
1790
+ runtime = util_models.RuntimeOptions()
1791
+ headers = {}
1792
+ return await self.get_memory_event_with_options_async(memory_name, session_id, event_id, request, headers, runtime)
1793
+
1794
+ def get_memory_session_with_options(
1795
+ self,
1796
+ memory_name: str,
1797
+ session_id: str,
1798
+ request: agent_run_20250910_models.GetMemorySessionRequest,
1799
+ headers: Dict[str, str],
1800
+ runtime: util_models.RuntimeOptions,
1801
+ ) -> agent_run_20250910_models.GetMemorySessionResponse:
1802
+ """
1803
+ @summary 获取内存会话详情
1804
+
1805
+ @description 根据会话ID获取指定内存会话的详细信息,包括会话中的事件记录、时间戳等。用于查看和管理对话历史。
1806
+
1807
+ @param request: GetMemorySessionRequest
1808
+ @param headers: map
1809
+ @param runtime: runtime options for this request RuntimeOptions
1810
+ @return: GetMemorySessionResponse
1811
+ """
1812
+ UtilClient.validate_model(request)
1813
+ query = {}
1814
+ if not UtilClient.is_unset(request.from_):
1815
+ query['from'] = request.from_
1816
+ if not UtilClient.is_unset(request.size):
1817
+ query['size'] = request.size
1818
+ if not UtilClient.is_unset(request.to):
1819
+ query['to'] = request.to
1820
+ req = open_api_models.OpenApiRequest(
1821
+ headers=headers,
1822
+ query=OpenApiUtilClient.query(query)
1823
+ )
1824
+ params = open_api_models.Params(
1825
+ action='GetMemorySession',
1826
+ version='2025-09-10',
1827
+ protocol='HTTPS',
1828
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}/sessions/{OpenApiUtilClient.get_encode_param(session_id)}',
1829
+ method='GET',
1830
+ auth_type='AK',
1831
+ style='ROA',
1832
+ req_body_type='json',
1833
+ body_type='json'
1834
+ )
1835
+ return TeaCore.from_map(
1836
+ agent_run_20250910_models.GetMemorySessionResponse(),
1837
+ self.call_api(params, req, runtime)
1838
+ )
1839
+
1840
+ async def get_memory_session_with_options_async(
1841
+ self,
1842
+ memory_name: str,
1843
+ session_id: str,
1844
+ request: agent_run_20250910_models.GetMemorySessionRequest,
1845
+ headers: Dict[str, str],
1846
+ runtime: util_models.RuntimeOptions,
1847
+ ) -> agent_run_20250910_models.GetMemorySessionResponse:
1848
+ """
1849
+ @summary 获取内存会话详情
1850
+
1851
+ @description 根据会话ID获取指定内存会话的详细信息,包括会话中的事件记录、时间戳等。用于查看和管理对话历史。
1852
+
1853
+ @param request: GetMemorySessionRequest
1854
+ @param headers: map
1855
+ @param runtime: runtime options for this request RuntimeOptions
1856
+ @return: GetMemorySessionResponse
1857
+ """
1858
+ UtilClient.validate_model(request)
1859
+ query = {}
1860
+ if not UtilClient.is_unset(request.from_):
1861
+ query['from'] = request.from_
1862
+ if not UtilClient.is_unset(request.size):
1863
+ query['size'] = request.size
1864
+ if not UtilClient.is_unset(request.to):
1865
+ query['to'] = request.to
1866
+ req = open_api_models.OpenApiRequest(
1867
+ headers=headers,
1868
+ query=OpenApiUtilClient.query(query)
1869
+ )
1870
+ params = open_api_models.Params(
1871
+ action='GetMemorySession',
1872
+ version='2025-09-10',
1873
+ protocol='HTTPS',
1874
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}/sessions/{OpenApiUtilClient.get_encode_param(session_id)}',
1875
+ method='GET',
1876
+ auth_type='AK',
1877
+ style='ROA',
1878
+ req_body_type='json',
1879
+ body_type='json'
1880
+ )
1881
+ return TeaCore.from_map(
1882
+ agent_run_20250910_models.GetMemorySessionResponse(),
1883
+ await self.call_api_async(params, req, runtime)
1884
+ )
1885
+
1886
+ def get_memory_session(
1887
+ self,
1888
+ memory_name: str,
1889
+ session_id: str,
1890
+ request: agent_run_20250910_models.GetMemorySessionRequest,
1891
+ ) -> agent_run_20250910_models.GetMemorySessionResponse:
1892
+ """
1893
+ @summary 获取内存会话详情
1894
+
1895
+ @description 根据会话ID获取指定内存会话的详细信息,包括会话中的事件记录、时间戳等。用于查看和管理对话历史。
1896
+
1897
+ @param request: GetMemorySessionRequest
1898
+ @return: GetMemorySessionResponse
1899
+ """
1900
+ runtime = util_models.RuntimeOptions()
1901
+ headers = {}
1902
+ return self.get_memory_session_with_options(memory_name, session_id, request, headers, runtime)
1903
+
1904
+ async def get_memory_session_async(
1905
+ self,
1906
+ memory_name: str,
1907
+ session_id: str,
1908
+ request: agent_run_20250910_models.GetMemorySessionRequest,
1909
+ ) -> agent_run_20250910_models.GetMemorySessionResponse:
1910
+ """
1911
+ @summary 获取内存会话详情
1912
+
1913
+ @description 根据会话ID获取指定内存会话的详细信息,包括会话中的事件记录、时间戳等。用于查看和管理对话历史。
1914
+
1915
+ @param request: GetMemorySessionRequest
1916
+ @return: GetMemorySessionResponse
1917
+ """
1918
+ runtime = util_models.RuntimeOptions()
1919
+ headers = {}
1920
+ return await self.get_memory_session_with_options_async(memory_name, session_id, request, headers, runtime)
1921
+
1922
+ def list_agent_runtime_endpoints_with_options(
1391
1923
  self,
1392
1924
  agent_runtime_id: str,
1393
- request: agent_run_20250910_models.ListAgentRuntimeVersionsRequest,
1925
+ request: agent_run_20250910_models.ListAgentRuntimeEndpointsRequest,
1394
1926
  headers: Dict[str, str],
1395
1927
  runtime: util_models.RuntimeOptions,
1396
- ) -> agent_run_20250910_models.ListAgentRuntimeVersionsResponse:
1928
+ ) -> agent_run_20250910_models.ListAgentRuntimeEndpointsResponse:
1397
1929
  """
1398
- @summary List agent runtime versions
1930
+ @summary 列出智能体运行时端点
1399
1931
 
1400
- @param request: ListAgentRuntimeVersionsRequest
1932
+ @description 获取指定智能体运行时的所有端点列表,支持按名称过滤和分页查询。端点用于外部系统访问智能体运行时服务。
1933
+
1934
+ @param request: ListAgentRuntimeEndpointsRequest
1401
1935
  @param headers: map
1402
1936
  @param runtime: runtime options for this request RuntimeOptions
1403
- @return: ListAgentRuntimeVersionsResponse
1937
+ @return: ListAgentRuntimeEndpointsResponse
1404
1938
  """
1405
1939
  UtilClient.validate_model(request)
1406
1940
  query = {}
1941
+ if not UtilClient.is_unset(request.endpoint_name):
1942
+ query['endpointName'] = request.endpoint_name
1407
1943
  if not UtilClient.is_unset(request.page_number):
1408
1944
  query['pageNumber'] = request.page_number
1409
1945
  if not UtilClient.is_unset(request.page_size):
@@ -1413,10 +1949,10 @@ class Client(OpenApiClient):
1413
1949
  query=OpenApiUtilClient.query(query)
1414
1950
  )
1415
1951
  params = open_api_models.Params(
1416
- action='ListAgentRuntimeVersions',
1952
+ action='ListAgentRuntimeEndpoints',
1417
1953
  version='2025-09-10',
1418
1954
  protocol='HTTPS',
1419
- pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/versions',
1955
+ pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/endpoints',
1420
1956
  method='GET',
1421
1957
  auth_type='AK',
1422
1958
  style='ROA',
@@ -1424,27 +1960,31 @@ class Client(OpenApiClient):
1424
1960
  body_type='json'
1425
1961
  )
1426
1962
  return TeaCore.from_map(
1427
- agent_run_20250910_models.ListAgentRuntimeVersionsResponse(),
1963
+ agent_run_20250910_models.ListAgentRuntimeEndpointsResponse(),
1428
1964
  self.call_api(params, req, runtime)
1429
1965
  )
1430
1966
 
1431
- async def list_agent_runtime_versions_with_options_async(
1967
+ async def list_agent_runtime_endpoints_with_options_async(
1432
1968
  self,
1433
1969
  agent_runtime_id: str,
1434
- request: agent_run_20250910_models.ListAgentRuntimeVersionsRequest,
1970
+ request: agent_run_20250910_models.ListAgentRuntimeEndpointsRequest,
1435
1971
  headers: Dict[str, str],
1436
1972
  runtime: util_models.RuntimeOptions,
1437
- ) -> agent_run_20250910_models.ListAgentRuntimeVersionsResponse:
1973
+ ) -> agent_run_20250910_models.ListAgentRuntimeEndpointsResponse:
1438
1974
  """
1439
- @summary List agent runtime versions
1975
+ @summary 列出智能体运行时端点
1440
1976
 
1441
- @param request: ListAgentRuntimeVersionsRequest
1977
+ @description 获取指定智能体运行时的所有端点列表,支持按名称过滤和分页查询。端点用于外部系统访问智能体运行时服务。
1978
+
1979
+ @param request: ListAgentRuntimeEndpointsRequest
1442
1980
  @param headers: map
1443
1981
  @param runtime: runtime options for this request RuntimeOptions
1444
- @return: ListAgentRuntimeVersionsResponse
1982
+ @return: ListAgentRuntimeEndpointsResponse
1445
1983
  """
1446
1984
  UtilClient.validate_model(request)
1447
1985
  query = {}
1986
+ if not UtilClient.is_unset(request.endpoint_name):
1987
+ query['endpointName'] = request.endpoint_name
1448
1988
  if not UtilClient.is_unset(request.page_number):
1449
1989
  query['pageNumber'] = request.page_number
1450
1990
  if not UtilClient.is_unset(request.page_size):
@@ -1454,10 +1994,10 @@ class Client(OpenApiClient):
1454
1994
  query=OpenApiUtilClient.query(query)
1455
1995
  )
1456
1996
  params = open_api_models.Params(
1457
- action='ListAgentRuntimeVersions',
1997
+ action='ListAgentRuntimeEndpoints',
1458
1998
  version='2025-09-10',
1459
1999
  protocol='HTTPS',
1460
- pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/versions',
2000
+ pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/endpoints',
1461
2001
  method='GET',
1462
2002
  auth_type='AK',
1463
2003
  style='ROA',
@@ -1465,43 +2005,159 @@ class Client(OpenApiClient):
1465
2005
  body_type='json'
1466
2006
  )
1467
2007
  return TeaCore.from_map(
1468
- agent_run_20250910_models.ListAgentRuntimeVersionsResponse(),
2008
+ agent_run_20250910_models.ListAgentRuntimeEndpointsResponse(),
1469
2009
  await self.call_api_async(params, req, runtime)
1470
2010
  )
1471
2011
 
1472
- def list_agent_runtime_versions(
2012
+ def list_agent_runtime_endpoints(
1473
2013
  self,
1474
2014
  agent_runtime_id: str,
1475
- request: agent_run_20250910_models.ListAgentRuntimeVersionsRequest,
1476
- ) -> agent_run_20250910_models.ListAgentRuntimeVersionsResponse:
2015
+ request: agent_run_20250910_models.ListAgentRuntimeEndpointsRequest,
2016
+ ) -> agent_run_20250910_models.ListAgentRuntimeEndpointsResponse:
1477
2017
  """
1478
- @summary List agent runtime versions
2018
+ @summary 列出智能体运行时端点
1479
2019
 
1480
- @param request: ListAgentRuntimeVersionsRequest
1481
- @return: ListAgentRuntimeVersionsResponse
2020
+ @description 获取指定智能体运行时的所有端点列表,支持按名称过滤和分页查询。端点用于外部系统访问智能体运行时服务。
2021
+
2022
+ @param request: ListAgentRuntimeEndpointsRequest
2023
+ @return: ListAgentRuntimeEndpointsResponse
1482
2024
  """
1483
2025
  runtime = util_models.RuntimeOptions()
1484
2026
  headers = {}
1485
- return self.list_agent_runtime_versions_with_options(agent_runtime_id, request, headers, runtime)
2027
+ return self.list_agent_runtime_endpoints_with_options(agent_runtime_id, request, headers, runtime)
1486
2028
 
1487
- async def list_agent_runtime_versions_async(
2029
+ async def list_agent_runtime_endpoints_async(
2030
+ self,
2031
+ agent_runtime_id: str,
2032
+ request: agent_run_20250910_models.ListAgentRuntimeEndpointsRequest,
2033
+ ) -> agent_run_20250910_models.ListAgentRuntimeEndpointsResponse:
2034
+ """
2035
+ @summary 列出智能体运行时端点
2036
+
2037
+ @description 获取指定智能体运行时的所有端点列表,支持按名称过滤和分页查询。端点用于外部系统访问智能体运行时服务。
2038
+
2039
+ @param request: ListAgentRuntimeEndpointsRequest
2040
+ @return: ListAgentRuntimeEndpointsResponse
2041
+ """
2042
+ runtime = util_models.RuntimeOptions()
2043
+ headers = {}
2044
+ return await self.list_agent_runtime_endpoints_with_options_async(agent_runtime_id, request, headers, runtime)
2045
+
2046
+ def list_agent_runtime_versions_with_options(
1488
2047
  self,
1489
2048
  agent_runtime_id: str,
1490
2049
  request: agent_run_20250910_models.ListAgentRuntimeVersionsRequest,
2050
+ headers: Dict[str, str],
2051
+ runtime: util_models.RuntimeOptions,
1491
2052
  ) -> agent_run_20250910_models.ListAgentRuntimeVersionsResponse:
1492
2053
  """
1493
2054
  @summary List agent runtime versions
1494
2055
 
1495
2056
  @param request: ListAgentRuntimeVersionsRequest
2057
+ @param headers: map
2058
+ @param runtime: runtime options for this request RuntimeOptions
1496
2059
  @return: ListAgentRuntimeVersionsResponse
1497
2060
  """
1498
- runtime = util_models.RuntimeOptions()
1499
- headers = {}
1500
- return await self.list_agent_runtime_versions_with_options_async(agent_runtime_id, request, headers, runtime)
2061
+ UtilClient.validate_model(request)
2062
+ query = {}
2063
+ if not UtilClient.is_unset(request.page_number):
2064
+ query['pageNumber'] = request.page_number
2065
+ if not UtilClient.is_unset(request.page_size):
2066
+ query['pageSize'] = request.page_size
2067
+ req = open_api_models.OpenApiRequest(
2068
+ headers=headers,
2069
+ query=OpenApiUtilClient.query(query)
2070
+ )
2071
+ params = open_api_models.Params(
2072
+ action='ListAgentRuntimeVersions',
2073
+ version='2025-09-10',
2074
+ protocol='HTTPS',
2075
+ pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/versions',
2076
+ method='GET',
2077
+ auth_type='AK',
2078
+ style='ROA',
2079
+ req_body_type='json',
2080
+ body_type='json'
2081
+ )
2082
+ return TeaCore.from_map(
2083
+ agent_run_20250910_models.ListAgentRuntimeVersionsResponse(),
2084
+ self.call_api(params, req, runtime)
2085
+ )
1501
2086
 
1502
- def list_agent_runtimes_with_options(
2087
+ async def list_agent_runtime_versions_with_options_async(
1503
2088
  self,
1504
- request: agent_run_20250910_models.ListAgentRuntimesRequest,
2089
+ agent_runtime_id: str,
2090
+ request: agent_run_20250910_models.ListAgentRuntimeVersionsRequest,
2091
+ headers: Dict[str, str],
2092
+ runtime: util_models.RuntimeOptions,
2093
+ ) -> agent_run_20250910_models.ListAgentRuntimeVersionsResponse:
2094
+ """
2095
+ @summary List agent runtime versions
2096
+
2097
+ @param request: ListAgentRuntimeVersionsRequest
2098
+ @param headers: map
2099
+ @param runtime: runtime options for this request RuntimeOptions
2100
+ @return: ListAgentRuntimeVersionsResponse
2101
+ """
2102
+ UtilClient.validate_model(request)
2103
+ query = {}
2104
+ if not UtilClient.is_unset(request.page_number):
2105
+ query['pageNumber'] = request.page_number
2106
+ if not UtilClient.is_unset(request.page_size):
2107
+ query['pageSize'] = request.page_size
2108
+ req = open_api_models.OpenApiRequest(
2109
+ headers=headers,
2110
+ query=OpenApiUtilClient.query(query)
2111
+ )
2112
+ params = open_api_models.Params(
2113
+ action='ListAgentRuntimeVersions',
2114
+ version='2025-09-10',
2115
+ protocol='HTTPS',
2116
+ pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/versions',
2117
+ method='GET',
2118
+ auth_type='AK',
2119
+ style='ROA',
2120
+ req_body_type='json',
2121
+ body_type='json'
2122
+ )
2123
+ return TeaCore.from_map(
2124
+ agent_run_20250910_models.ListAgentRuntimeVersionsResponse(),
2125
+ await self.call_api_async(params, req, runtime)
2126
+ )
2127
+
2128
+ def list_agent_runtime_versions(
2129
+ self,
2130
+ agent_runtime_id: str,
2131
+ request: agent_run_20250910_models.ListAgentRuntimeVersionsRequest,
2132
+ ) -> agent_run_20250910_models.ListAgentRuntimeVersionsResponse:
2133
+ """
2134
+ @summary List agent runtime versions
2135
+
2136
+ @param request: ListAgentRuntimeVersionsRequest
2137
+ @return: ListAgentRuntimeVersionsResponse
2138
+ """
2139
+ runtime = util_models.RuntimeOptions()
2140
+ headers = {}
2141
+ return self.list_agent_runtime_versions_with_options(agent_runtime_id, request, headers, runtime)
2142
+
2143
+ async def list_agent_runtime_versions_async(
2144
+ self,
2145
+ agent_runtime_id: str,
2146
+ request: agent_run_20250910_models.ListAgentRuntimeVersionsRequest,
2147
+ ) -> agent_run_20250910_models.ListAgentRuntimeVersionsResponse:
2148
+ """
2149
+ @summary List agent runtime versions
2150
+
2151
+ @param request: ListAgentRuntimeVersionsRequest
2152
+ @return: ListAgentRuntimeVersionsResponse
2153
+ """
2154
+ runtime = util_models.RuntimeOptions()
2155
+ headers = {}
2156
+ return await self.list_agent_runtime_versions_with_options_async(agent_runtime_id, request, headers, runtime)
2157
+
2158
+ def list_agent_runtimes_with_options(
2159
+ self,
2160
+ request: agent_run_20250910_models.ListAgentRuntimesRequest,
1505
2161
  headers: Dict[str, str],
1506
2162
  runtime: util_models.RuntimeOptions,
1507
2163
  ) -> agent_run_20250910_models.ListAgentRuntimesResponse:
@@ -1510,15 +2166,377 @@ class Client(OpenApiClient):
1510
2166
 
1511
2167
  @description 获取当前用户的所有智能体运行时列表,支持按名称、标签等条件过滤,支持分页查询。
1512
2168
 
1513
- @param request: ListAgentRuntimesRequest
2169
+ @param request: ListAgentRuntimesRequest
2170
+ @param headers: map
2171
+ @param runtime: runtime options for this request RuntimeOptions
2172
+ @return: ListAgentRuntimesResponse
2173
+ """
2174
+ UtilClient.validate_model(request)
2175
+ query = {}
2176
+ if not UtilClient.is_unset(request.agent_runtime_name):
2177
+ query['agentRuntimeName'] = request.agent_runtime_name
2178
+ if not UtilClient.is_unset(request.page_number):
2179
+ query['pageNumber'] = request.page_number
2180
+ if not UtilClient.is_unset(request.page_size):
2181
+ query['pageSize'] = request.page_size
2182
+ req = open_api_models.OpenApiRequest(
2183
+ headers=headers,
2184
+ query=OpenApiUtilClient.query(query)
2185
+ )
2186
+ params = open_api_models.Params(
2187
+ action='ListAgentRuntimes',
2188
+ version='2025-09-10',
2189
+ protocol='HTTPS',
2190
+ pathname=f'/2025-09-10/agents/runtimes',
2191
+ method='GET',
2192
+ auth_type='AK',
2193
+ style='ROA',
2194
+ req_body_type='json',
2195
+ body_type='json'
2196
+ )
2197
+ return TeaCore.from_map(
2198
+ agent_run_20250910_models.ListAgentRuntimesResponse(),
2199
+ self.call_api(params, req, runtime)
2200
+ )
2201
+
2202
+ async def list_agent_runtimes_with_options_async(
2203
+ self,
2204
+ request: agent_run_20250910_models.ListAgentRuntimesRequest,
2205
+ headers: Dict[str, str],
2206
+ runtime: util_models.RuntimeOptions,
2207
+ ) -> agent_run_20250910_models.ListAgentRuntimesResponse:
2208
+ """
2209
+ @summary 列出智能体运行时
2210
+
2211
+ @description 获取当前用户的所有智能体运行时列表,支持按名称、标签等条件过滤,支持分页查询。
2212
+
2213
+ @param request: ListAgentRuntimesRequest
2214
+ @param headers: map
2215
+ @param runtime: runtime options for this request RuntimeOptions
2216
+ @return: ListAgentRuntimesResponse
2217
+ """
2218
+ UtilClient.validate_model(request)
2219
+ query = {}
2220
+ if not UtilClient.is_unset(request.agent_runtime_name):
2221
+ query['agentRuntimeName'] = request.agent_runtime_name
2222
+ if not UtilClient.is_unset(request.page_number):
2223
+ query['pageNumber'] = request.page_number
2224
+ if not UtilClient.is_unset(request.page_size):
2225
+ query['pageSize'] = request.page_size
2226
+ req = open_api_models.OpenApiRequest(
2227
+ headers=headers,
2228
+ query=OpenApiUtilClient.query(query)
2229
+ )
2230
+ params = open_api_models.Params(
2231
+ action='ListAgentRuntimes',
2232
+ version='2025-09-10',
2233
+ protocol='HTTPS',
2234
+ pathname=f'/2025-09-10/agents/runtimes',
2235
+ method='GET',
2236
+ auth_type='AK',
2237
+ style='ROA',
2238
+ req_body_type='json',
2239
+ body_type='json'
2240
+ )
2241
+ return TeaCore.from_map(
2242
+ agent_run_20250910_models.ListAgentRuntimesResponse(),
2243
+ await self.call_api_async(params, req, runtime)
2244
+ )
2245
+
2246
+ def list_agent_runtimes(
2247
+ self,
2248
+ request: agent_run_20250910_models.ListAgentRuntimesRequest,
2249
+ ) -> agent_run_20250910_models.ListAgentRuntimesResponse:
2250
+ """
2251
+ @summary 列出智能体运行时
2252
+
2253
+ @description 获取当前用户的所有智能体运行时列表,支持按名称、标签等条件过滤,支持分页查询。
2254
+
2255
+ @param request: ListAgentRuntimesRequest
2256
+ @return: ListAgentRuntimesResponse
2257
+ """
2258
+ runtime = util_models.RuntimeOptions()
2259
+ headers = {}
2260
+ return self.list_agent_runtimes_with_options(request, headers, runtime)
2261
+
2262
+ async def list_agent_runtimes_async(
2263
+ self,
2264
+ request: agent_run_20250910_models.ListAgentRuntimesRequest,
2265
+ ) -> agent_run_20250910_models.ListAgentRuntimesResponse:
2266
+ """
2267
+ @summary 列出智能体运行时
2268
+
2269
+ @description 获取当前用户的所有智能体运行时列表,支持按名称、标签等条件过滤,支持分页查询。
2270
+
2271
+ @param request: ListAgentRuntimesRequest
2272
+ @return: ListAgentRuntimesResponse
2273
+ """
2274
+ runtime = util_models.RuntimeOptions()
2275
+ headers = {}
2276
+ return await self.list_agent_runtimes_with_options_async(request, headers, runtime)
2277
+
2278
+ def list_browsers_with_options(
2279
+ self,
2280
+ request: agent_run_20250910_models.ListBrowsersRequest,
2281
+ headers: Dict[str, str],
2282
+ runtime: util_models.RuntimeOptions,
2283
+ ) -> agent_run_20250910_models.ListBrowsersResponse:
2284
+ """
2285
+ @summary 列出浏览器实例
2286
+
2287
+ @description 获取当前用户的所有浏览器实例列表,支持按名称、状态等条件过滤,支持分页查询。
2288
+
2289
+ @param request: ListBrowsersRequest
2290
+ @param headers: map
2291
+ @param runtime: runtime options for this request RuntimeOptions
2292
+ @return: ListBrowsersResponse
2293
+ """
2294
+ UtilClient.validate_model(request)
2295
+ query = {}
2296
+ if not UtilClient.is_unset(request.browser_name):
2297
+ query['browserName'] = request.browser_name
2298
+ if not UtilClient.is_unset(request.page_number):
2299
+ query['pageNumber'] = request.page_number
2300
+ if not UtilClient.is_unset(request.page_size):
2301
+ query['pageSize'] = request.page_size
2302
+ if not UtilClient.is_unset(request.status):
2303
+ query['status'] = request.status
2304
+ req = open_api_models.OpenApiRequest(
2305
+ headers=headers,
2306
+ query=OpenApiUtilClient.query(query)
2307
+ )
2308
+ params = open_api_models.Params(
2309
+ action='ListBrowsers',
2310
+ version='2025-09-10',
2311
+ protocol='HTTPS',
2312
+ pathname=f'/2025-09-10/agents/browsers',
2313
+ method='GET',
2314
+ auth_type='AK',
2315
+ style='ROA',
2316
+ req_body_type='json',
2317
+ body_type='json'
2318
+ )
2319
+ return TeaCore.from_map(
2320
+ agent_run_20250910_models.ListBrowsersResponse(),
2321
+ self.call_api(params, req, runtime)
2322
+ )
2323
+
2324
+ async def list_browsers_with_options_async(
2325
+ self,
2326
+ request: agent_run_20250910_models.ListBrowsersRequest,
2327
+ headers: Dict[str, str],
2328
+ runtime: util_models.RuntimeOptions,
2329
+ ) -> agent_run_20250910_models.ListBrowsersResponse:
2330
+ """
2331
+ @summary 列出浏览器实例
2332
+
2333
+ @description 获取当前用户的所有浏览器实例列表,支持按名称、状态等条件过滤,支持分页查询。
2334
+
2335
+ @param request: ListBrowsersRequest
2336
+ @param headers: map
2337
+ @param runtime: runtime options for this request RuntimeOptions
2338
+ @return: ListBrowsersResponse
2339
+ """
2340
+ UtilClient.validate_model(request)
2341
+ query = {}
2342
+ if not UtilClient.is_unset(request.browser_name):
2343
+ query['browserName'] = request.browser_name
2344
+ if not UtilClient.is_unset(request.page_number):
2345
+ query['pageNumber'] = request.page_number
2346
+ if not UtilClient.is_unset(request.page_size):
2347
+ query['pageSize'] = request.page_size
2348
+ if not UtilClient.is_unset(request.status):
2349
+ query['status'] = request.status
2350
+ req = open_api_models.OpenApiRequest(
2351
+ headers=headers,
2352
+ query=OpenApiUtilClient.query(query)
2353
+ )
2354
+ params = open_api_models.Params(
2355
+ action='ListBrowsers',
2356
+ version='2025-09-10',
2357
+ protocol='HTTPS',
2358
+ pathname=f'/2025-09-10/agents/browsers',
2359
+ method='GET',
2360
+ auth_type='AK',
2361
+ style='ROA',
2362
+ req_body_type='json',
2363
+ body_type='json'
2364
+ )
2365
+ return TeaCore.from_map(
2366
+ agent_run_20250910_models.ListBrowsersResponse(),
2367
+ await self.call_api_async(params, req, runtime)
2368
+ )
2369
+
2370
+ def list_browsers(
2371
+ self,
2372
+ request: agent_run_20250910_models.ListBrowsersRequest,
2373
+ ) -> agent_run_20250910_models.ListBrowsersResponse:
2374
+ """
2375
+ @summary 列出浏览器实例
2376
+
2377
+ @description 获取当前用户的所有浏览器实例列表,支持按名称、状态等条件过滤,支持分页查询。
2378
+
2379
+ @param request: ListBrowsersRequest
2380
+ @return: ListBrowsersResponse
2381
+ """
2382
+ runtime = util_models.RuntimeOptions()
2383
+ headers = {}
2384
+ return self.list_browsers_with_options(request, headers, runtime)
2385
+
2386
+ async def list_browsers_async(
2387
+ self,
2388
+ request: agent_run_20250910_models.ListBrowsersRequest,
2389
+ ) -> agent_run_20250910_models.ListBrowsersResponse:
2390
+ """
2391
+ @summary 列出浏览器实例
2392
+
2393
+ @description 获取当前用户的所有浏览器实例列表,支持按名称、状态等条件过滤,支持分页查询。
2394
+
2395
+ @param request: ListBrowsersRequest
2396
+ @return: ListBrowsersResponse
2397
+ """
2398
+ runtime = util_models.RuntimeOptions()
2399
+ headers = {}
2400
+ return await self.list_browsers_with_options_async(request, headers, runtime)
2401
+
2402
+ def list_code_interpreters_with_options(
2403
+ self,
2404
+ request: agent_run_20250910_models.ListCodeInterpretersRequest,
2405
+ headers: Dict[str, str],
2406
+ runtime: util_models.RuntimeOptions,
2407
+ ) -> agent_run_20250910_models.ListCodeInterpretersResponse:
2408
+ """
2409
+ @summary 列出代码解释器
2410
+
2411
+ @description 获取当前用户的所有代码解释器实例列表,支持按名称等条件过滤,支持分页查询。
2412
+
2413
+ @param request: ListCodeInterpretersRequest
2414
+ @param headers: map
2415
+ @param runtime: runtime options for this request RuntimeOptions
2416
+ @return: ListCodeInterpretersResponse
2417
+ """
2418
+ UtilClient.validate_model(request)
2419
+ query = {}
2420
+ if not UtilClient.is_unset(request.code_interpreter_name):
2421
+ query['codeInterpreterName'] = request.code_interpreter_name
2422
+ if not UtilClient.is_unset(request.page_number):
2423
+ query['pageNumber'] = request.page_number
2424
+ if not UtilClient.is_unset(request.page_size):
2425
+ query['pageSize'] = request.page_size
2426
+ req = open_api_models.OpenApiRequest(
2427
+ headers=headers,
2428
+ query=OpenApiUtilClient.query(query)
2429
+ )
2430
+ params = open_api_models.Params(
2431
+ action='ListCodeInterpreters',
2432
+ version='2025-09-10',
2433
+ protocol='HTTPS',
2434
+ pathname=f'/2025-09-10/agents/code-interpreters',
2435
+ method='GET',
2436
+ auth_type='AK',
2437
+ style='ROA',
2438
+ req_body_type='json',
2439
+ body_type='json'
2440
+ )
2441
+ return TeaCore.from_map(
2442
+ agent_run_20250910_models.ListCodeInterpretersResponse(),
2443
+ self.call_api(params, req, runtime)
2444
+ )
2445
+
2446
+ async def list_code_interpreters_with_options_async(
2447
+ self,
2448
+ request: agent_run_20250910_models.ListCodeInterpretersRequest,
2449
+ headers: Dict[str, str],
2450
+ runtime: util_models.RuntimeOptions,
2451
+ ) -> agent_run_20250910_models.ListCodeInterpretersResponse:
2452
+ """
2453
+ @summary 列出代码解释器
2454
+
2455
+ @description 获取当前用户的所有代码解释器实例列表,支持按名称等条件过滤,支持分页查询。
2456
+
2457
+ @param request: ListCodeInterpretersRequest
2458
+ @param headers: map
2459
+ @param runtime: runtime options for this request RuntimeOptions
2460
+ @return: ListCodeInterpretersResponse
2461
+ """
2462
+ UtilClient.validate_model(request)
2463
+ query = {}
2464
+ if not UtilClient.is_unset(request.code_interpreter_name):
2465
+ query['codeInterpreterName'] = request.code_interpreter_name
2466
+ if not UtilClient.is_unset(request.page_number):
2467
+ query['pageNumber'] = request.page_number
2468
+ if not UtilClient.is_unset(request.page_size):
2469
+ query['pageSize'] = request.page_size
2470
+ req = open_api_models.OpenApiRequest(
2471
+ headers=headers,
2472
+ query=OpenApiUtilClient.query(query)
2473
+ )
2474
+ params = open_api_models.Params(
2475
+ action='ListCodeInterpreters',
2476
+ version='2025-09-10',
2477
+ protocol='HTTPS',
2478
+ pathname=f'/2025-09-10/agents/code-interpreters',
2479
+ method='GET',
2480
+ auth_type='AK',
2481
+ style='ROA',
2482
+ req_body_type='json',
2483
+ body_type='json'
2484
+ )
2485
+ return TeaCore.from_map(
2486
+ agent_run_20250910_models.ListCodeInterpretersResponse(),
2487
+ await self.call_api_async(params, req, runtime)
2488
+ )
2489
+
2490
+ def list_code_interpreters(
2491
+ self,
2492
+ request: agent_run_20250910_models.ListCodeInterpretersRequest,
2493
+ ) -> agent_run_20250910_models.ListCodeInterpretersResponse:
2494
+ """
2495
+ @summary 列出代码解释器
2496
+
2497
+ @description 获取当前用户的所有代码解释器实例列表,支持按名称等条件过滤,支持分页查询。
2498
+
2499
+ @param request: ListCodeInterpretersRequest
2500
+ @return: ListCodeInterpretersResponse
2501
+ """
2502
+ runtime = util_models.RuntimeOptions()
2503
+ headers = {}
2504
+ return self.list_code_interpreters_with_options(request, headers, runtime)
2505
+
2506
+ async def list_code_interpreters_async(
2507
+ self,
2508
+ request: agent_run_20250910_models.ListCodeInterpretersRequest,
2509
+ ) -> agent_run_20250910_models.ListCodeInterpretersResponse:
2510
+ """
2511
+ @summary 列出代码解释器
2512
+
2513
+ @description 获取当前用户的所有代码解释器实例列表,支持按名称等条件过滤,支持分页查询。
2514
+
2515
+ @param request: ListCodeInterpretersRequest
2516
+ @return: ListCodeInterpretersResponse
2517
+ """
2518
+ runtime = util_models.RuntimeOptions()
2519
+ headers = {}
2520
+ return await self.list_code_interpreters_with_options_async(request, headers, runtime)
2521
+
2522
+ def list_memory_with_options(
2523
+ self,
2524
+ request: agent_run_20250910_models.ListMemoryRequest,
2525
+ headers: Dict[str, str],
2526
+ runtime: util_models.RuntimeOptions,
2527
+ ) -> agent_run_20250910_models.ListMemoryResponse:
2528
+ """
2529
+ @summary ListMemory
2530
+
2531
+ @param request: ListMemoryRequest
1514
2532
  @param headers: map
1515
2533
  @param runtime: runtime options for this request RuntimeOptions
1516
- @return: ListAgentRuntimesResponse
2534
+ @return: ListMemoryResponse
1517
2535
  """
1518
2536
  UtilClient.validate_model(request)
1519
2537
  query = {}
1520
- if not UtilClient.is_unset(request.agent_runtime_name):
1521
- query['agentRuntimeName'] = request.agent_runtime_name
2538
+ if not UtilClient.is_unset(request.name_prefix):
2539
+ query['namePrefix'] = request.name_prefix
1522
2540
  if not UtilClient.is_unset(request.page_number):
1523
2541
  query['pageNumber'] = request.page_number
1524
2542
  if not UtilClient.is_unset(request.page_size):
@@ -1528,10 +2546,10 @@ class Client(OpenApiClient):
1528
2546
  query=OpenApiUtilClient.query(query)
1529
2547
  )
1530
2548
  params = open_api_models.Params(
1531
- action='ListAgentRuntimes',
2549
+ action='ListMemory',
1532
2550
  version='2025-09-10',
1533
2551
  protocol='HTTPS',
1534
- pathname=f'/2025-09-10/agents/runtimes',
2552
+ pathname=f'/2025-09-10/agents/memories',
1535
2553
  method='GET',
1536
2554
  auth_type='AK',
1537
2555
  style='ROA',
@@ -1539,30 +2557,28 @@ class Client(OpenApiClient):
1539
2557
  body_type='json'
1540
2558
  )
1541
2559
  return TeaCore.from_map(
1542
- agent_run_20250910_models.ListAgentRuntimesResponse(),
2560
+ agent_run_20250910_models.ListMemoryResponse(),
1543
2561
  self.call_api(params, req, runtime)
1544
2562
  )
1545
2563
 
1546
- async def list_agent_runtimes_with_options_async(
2564
+ async def list_memory_with_options_async(
1547
2565
  self,
1548
- request: agent_run_20250910_models.ListAgentRuntimesRequest,
2566
+ request: agent_run_20250910_models.ListMemoryRequest,
1549
2567
  headers: Dict[str, str],
1550
2568
  runtime: util_models.RuntimeOptions,
1551
- ) -> agent_run_20250910_models.ListAgentRuntimesResponse:
2569
+ ) -> agent_run_20250910_models.ListMemoryResponse:
1552
2570
  """
1553
- @summary 列出智能体运行时
1554
-
1555
- @description 获取当前用户的所有智能体运行时列表,支持按名称、标签等条件过滤,支持分页查询。
2571
+ @summary ListMemory
1556
2572
 
1557
- @param request: ListAgentRuntimesRequest
2573
+ @param request: ListMemoryRequest
1558
2574
  @param headers: map
1559
2575
  @param runtime: runtime options for this request RuntimeOptions
1560
- @return: ListAgentRuntimesResponse
2576
+ @return: ListMemoryResponse
1561
2577
  """
1562
2578
  UtilClient.validate_model(request)
1563
2579
  query = {}
1564
- if not UtilClient.is_unset(request.agent_runtime_name):
1565
- query['agentRuntimeName'] = request.agent_runtime_name
2580
+ if not UtilClient.is_unset(request.name_prefix):
2581
+ query['namePrefix'] = request.name_prefix
1566
2582
  if not UtilClient.is_unset(request.page_number):
1567
2583
  query['pageNumber'] = request.page_number
1568
2584
  if not UtilClient.is_unset(request.page_size):
@@ -1572,10 +2588,10 @@ class Client(OpenApiClient):
1572
2588
  query=OpenApiUtilClient.query(query)
1573
2589
  )
1574
2590
  params = open_api_models.Params(
1575
- action='ListAgentRuntimes',
2591
+ action='ListMemory',
1576
2592
  version='2025-09-10',
1577
2593
  protocol='HTTPS',
1578
- pathname=f'/2025-09-10/agents/runtimes',
2594
+ pathname=f'/2025-09-10/agents/memories',
1579
2595
  method='GET',
1580
2596
  auth_type='AK',
1581
2597
  style='ROA',
@@ -1583,77 +2599,73 @@ class Client(OpenApiClient):
1583
2599
  body_type='json'
1584
2600
  )
1585
2601
  return TeaCore.from_map(
1586
- agent_run_20250910_models.ListAgentRuntimesResponse(),
2602
+ agent_run_20250910_models.ListMemoryResponse(),
1587
2603
  await self.call_api_async(params, req, runtime)
1588
2604
  )
1589
2605
 
1590
- def list_agent_runtimes(
2606
+ def list_memory(
1591
2607
  self,
1592
- request: agent_run_20250910_models.ListAgentRuntimesRequest,
1593
- ) -> agent_run_20250910_models.ListAgentRuntimesResponse:
2608
+ request: agent_run_20250910_models.ListMemoryRequest,
2609
+ ) -> agent_run_20250910_models.ListMemoryResponse:
1594
2610
  """
1595
- @summary 列出智能体运行时
1596
-
1597
- @description 获取当前用户的所有智能体运行时列表,支持按名称、标签等条件过滤,支持分页查询。
2611
+ @summary ListMemory
1598
2612
 
1599
- @param request: ListAgentRuntimesRequest
1600
- @return: ListAgentRuntimesResponse
2613
+ @param request: ListMemoryRequest
2614
+ @return: ListMemoryResponse
1601
2615
  """
1602
2616
  runtime = util_models.RuntimeOptions()
1603
2617
  headers = {}
1604
- return self.list_agent_runtimes_with_options(request, headers, runtime)
2618
+ return self.list_memory_with_options(request, headers, runtime)
1605
2619
 
1606
- async def list_agent_runtimes_async(
2620
+ async def list_memory_async(
1607
2621
  self,
1608
- request: agent_run_20250910_models.ListAgentRuntimesRequest,
1609
- ) -> agent_run_20250910_models.ListAgentRuntimesResponse:
2622
+ request: agent_run_20250910_models.ListMemoryRequest,
2623
+ ) -> agent_run_20250910_models.ListMemoryResponse:
1610
2624
  """
1611
- @summary 列出智能体运行时
1612
-
1613
- @description 获取当前用户的所有智能体运行时列表,支持按名称、标签等条件过滤,支持分页查询。
2625
+ @summary ListMemory
1614
2626
 
1615
- @param request: ListAgentRuntimesRequest
1616
- @return: ListAgentRuntimesResponse
2627
+ @param request: ListMemoryRequest
2628
+ @return: ListMemoryResponse
1617
2629
  """
1618
2630
  runtime = util_models.RuntimeOptions()
1619
2631
  headers = {}
1620
- return await self.list_agent_runtimes_with_options_async(request, headers, runtime)
2632
+ return await self.list_memory_with_options_async(request, headers, runtime)
1621
2633
 
1622
- def list_browsers_with_options(
2634
+ def list_memory_event_with_options(
1623
2635
  self,
1624
- request: agent_run_20250910_models.ListBrowsersRequest,
2636
+ memory_name: str,
2637
+ session_id: str,
2638
+ request: agent_run_20250910_models.ListMemoryEventRequest,
1625
2639
  headers: Dict[str, str],
1626
2640
  runtime: util_models.RuntimeOptions,
1627
- ) -> agent_run_20250910_models.ListBrowsersResponse:
2641
+ ) -> agent_run_20250910_models.ListMemoryEventResponse:
1628
2642
  """
1629
- @summary 列出浏览器实例
2643
+ @summary list events
1630
2644
 
1631
- @description 获取当前用户的所有浏览器实例列表,支持按名称、状态等条件过滤,支持分页查询。
1632
-
1633
- @param request: ListBrowsersRequest
2645
+ @param request: ListMemoryEventRequest
1634
2646
  @param headers: map
1635
2647
  @param runtime: runtime options for this request RuntimeOptions
1636
- @return: ListBrowsersResponse
2648
+ @return: ListMemoryEventResponse
1637
2649
  """
1638
2650
  UtilClient.validate_model(request)
1639
2651
  query = {}
1640
- if not UtilClient.is_unset(request.browser_name):
1641
- query['browserName'] = request.browser_name
2652
+ if not UtilClient.is_unset(request.from_):
2653
+ query['from'] = request.from_
1642
2654
  if not UtilClient.is_unset(request.page_number):
1643
2655
  query['pageNumber'] = request.page_number
1644
2656
  if not UtilClient.is_unset(request.page_size):
1645
2657
  query['pageSize'] = request.page_size
1646
- if not UtilClient.is_unset(request.status):
1647
- query['status'] = request.status
2658
+ if not UtilClient.is_unset(request.to):
2659
+ query['to'] = request.to
1648
2660
  req = open_api_models.OpenApiRequest(
1649
2661
  headers=headers,
1650
2662
  query=OpenApiUtilClient.query(query)
1651
2663
  )
1652
2664
  params = open_api_models.Params(
1653
- action='ListBrowsers',
2665
+ action='ListMemoryEvent',
1654
2666
  version='2025-09-10',
1655
2667
  protocol='HTTPS',
1656
- pathname=f'/2025-09-10/agents/browsers',
2668
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}/sessions/{OpenApiUtilClient.get_encode_param(session_id)}/events',
1657
2669
  method='GET',
1658
2670
  auth_type='AK',
1659
2671
  style='ROA',
@@ -1661,45 +2673,45 @@ class Client(OpenApiClient):
1661
2673
  body_type='json'
1662
2674
  )
1663
2675
  return TeaCore.from_map(
1664
- agent_run_20250910_models.ListBrowsersResponse(),
2676
+ agent_run_20250910_models.ListMemoryEventResponse(),
1665
2677
  self.call_api(params, req, runtime)
1666
2678
  )
1667
2679
 
1668
- async def list_browsers_with_options_async(
2680
+ async def list_memory_event_with_options_async(
1669
2681
  self,
1670
- request: agent_run_20250910_models.ListBrowsersRequest,
2682
+ memory_name: str,
2683
+ session_id: str,
2684
+ request: agent_run_20250910_models.ListMemoryEventRequest,
1671
2685
  headers: Dict[str, str],
1672
2686
  runtime: util_models.RuntimeOptions,
1673
- ) -> agent_run_20250910_models.ListBrowsersResponse:
2687
+ ) -> agent_run_20250910_models.ListMemoryEventResponse:
1674
2688
  """
1675
- @summary 列出浏览器实例
1676
-
1677
- @description 获取当前用户的所有浏览器实例列表,支持按名称、状态等条件过滤,支持分页查询。
2689
+ @summary list events
1678
2690
 
1679
- @param request: ListBrowsersRequest
2691
+ @param request: ListMemoryEventRequest
1680
2692
  @param headers: map
1681
2693
  @param runtime: runtime options for this request RuntimeOptions
1682
- @return: ListBrowsersResponse
2694
+ @return: ListMemoryEventResponse
1683
2695
  """
1684
2696
  UtilClient.validate_model(request)
1685
2697
  query = {}
1686
- if not UtilClient.is_unset(request.browser_name):
1687
- query['browserName'] = request.browser_name
2698
+ if not UtilClient.is_unset(request.from_):
2699
+ query['from'] = request.from_
1688
2700
  if not UtilClient.is_unset(request.page_number):
1689
2701
  query['pageNumber'] = request.page_number
1690
2702
  if not UtilClient.is_unset(request.page_size):
1691
2703
  query['pageSize'] = request.page_size
1692
- if not UtilClient.is_unset(request.status):
1693
- query['status'] = request.status
2704
+ if not UtilClient.is_unset(request.to):
2705
+ query['to'] = request.to
1694
2706
  req = open_api_models.OpenApiRequest(
1695
2707
  headers=headers,
1696
2708
  query=OpenApiUtilClient.query(query)
1697
2709
  )
1698
2710
  params = open_api_models.Params(
1699
- action='ListBrowsers',
2711
+ action='ListMemoryEvent',
1700
2712
  version='2025-09-10',
1701
2713
  protocol='HTTPS',
1702
- pathname=f'/2025-09-10/agents/browsers',
2714
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}/sessions/{OpenApiUtilClient.get_encode_param(session_id)}/events',
1703
2715
  method='GET',
1704
2716
  auth_type='AK',
1705
2717
  style='ROA',
@@ -1707,75 +2719,78 @@ class Client(OpenApiClient):
1707
2719
  body_type='json'
1708
2720
  )
1709
2721
  return TeaCore.from_map(
1710
- agent_run_20250910_models.ListBrowsersResponse(),
2722
+ agent_run_20250910_models.ListMemoryEventResponse(),
1711
2723
  await self.call_api_async(params, req, runtime)
1712
2724
  )
1713
2725
 
1714
- def list_browsers(
2726
+ def list_memory_event(
1715
2727
  self,
1716
- request: agent_run_20250910_models.ListBrowsersRequest,
1717
- ) -> agent_run_20250910_models.ListBrowsersResponse:
2728
+ memory_name: str,
2729
+ session_id: str,
2730
+ request: agent_run_20250910_models.ListMemoryEventRequest,
2731
+ ) -> agent_run_20250910_models.ListMemoryEventResponse:
1718
2732
  """
1719
- @summary 列出浏览器实例
1720
-
1721
- @description 获取当前用户的所有浏览器实例列表,支持按名称、状态等条件过滤,支持分页查询。
2733
+ @summary list events
1722
2734
 
1723
- @param request: ListBrowsersRequest
1724
- @return: ListBrowsersResponse
2735
+ @param request: ListMemoryEventRequest
2736
+ @return: ListMemoryEventResponse
1725
2737
  """
1726
2738
  runtime = util_models.RuntimeOptions()
1727
2739
  headers = {}
1728
- return self.list_browsers_with_options(request, headers, runtime)
2740
+ return self.list_memory_event_with_options(memory_name, session_id, request, headers, runtime)
1729
2741
 
1730
- async def list_browsers_async(
2742
+ async def list_memory_event_async(
1731
2743
  self,
1732
- request: agent_run_20250910_models.ListBrowsersRequest,
1733
- ) -> agent_run_20250910_models.ListBrowsersResponse:
2744
+ memory_name: str,
2745
+ session_id: str,
2746
+ request: agent_run_20250910_models.ListMemoryEventRequest,
2747
+ ) -> agent_run_20250910_models.ListMemoryEventResponse:
1734
2748
  """
1735
- @summary 列出浏览器实例
1736
-
1737
- @description 获取当前用户的所有浏览器实例列表,支持按名称、状态等条件过滤,支持分页查询。
2749
+ @summary list events
1738
2750
 
1739
- @param request: ListBrowsersRequest
1740
- @return: ListBrowsersResponse
2751
+ @param request: ListMemoryEventRequest
2752
+ @return: ListMemoryEventResponse
1741
2753
  """
1742
2754
  runtime = util_models.RuntimeOptions()
1743
2755
  headers = {}
1744
- return await self.list_browsers_with_options_async(request, headers, runtime)
2756
+ return await self.list_memory_event_with_options_async(memory_name, session_id, request, headers, runtime)
1745
2757
 
1746
- def list_code_interpreters_with_options(
2758
+ def list_memory_sessions_with_options(
1747
2759
  self,
1748
- request: agent_run_20250910_models.ListCodeInterpretersRequest,
2760
+ memory_name: str,
2761
+ request: agent_run_20250910_models.ListMemorySessionsRequest,
1749
2762
  headers: Dict[str, str],
1750
2763
  runtime: util_models.RuntimeOptions,
1751
- ) -> agent_run_20250910_models.ListCodeInterpretersResponse:
2764
+ ) -> agent_run_20250910_models.ListMemorySessionsResponse:
1752
2765
  """
1753
- @summary 列出代码解释器
2766
+ @summary 列出内存会话
1754
2767
 
1755
- @description 获取当前用户的所有代码解释器实例列表,支持按名称等条件过滤,支持分页查询。
2768
+ @description 获取指定内存实例的所有会话列表,支持按时间范围过滤和分页查询。会话是AgentRun中用于存储对话历史和管理上下文的重要组件。
1756
2769
 
1757
- @param request: ListCodeInterpretersRequest
2770
+ @param request: ListMemorySessionsRequest
1758
2771
  @param headers: map
1759
2772
  @param runtime: runtime options for this request RuntimeOptions
1760
- @return: ListCodeInterpretersResponse
2773
+ @return: ListMemorySessionsResponse
1761
2774
  """
1762
2775
  UtilClient.validate_model(request)
1763
2776
  query = {}
1764
- if not UtilClient.is_unset(request.code_interpreter_name):
1765
- query['codeInterpreterName'] = request.code_interpreter_name
2777
+ if not UtilClient.is_unset(request.from_):
2778
+ query['from'] = request.from_
1766
2779
  if not UtilClient.is_unset(request.page_number):
1767
2780
  query['pageNumber'] = request.page_number
1768
2781
  if not UtilClient.is_unset(request.page_size):
1769
2782
  query['pageSize'] = request.page_size
2783
+ if not UtilClient.is_unset(request.to):
2784
+ query['to'] = request.to
1770
2785
  req = open_api_models.OpenApiRequest(
1771
2786
  headers=headers,
1772
2787
  query=OpenApiUtilClient.query(query)
1773
2788
  )
1774
2789
  params = open_api_models.Params(
1775
- action='ListCodeInterpreters',
2790
+ action='ListMemorySessions',
1776
2791
  version='2025-09-10',
1777
2792
  protocol='HTTPS',
1778
- pathname=f'/2025-09-10/agents/code-interpreters',
2793
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}/sessions',
1779
2794
  method='GET',
1780
2795
  auth_type='AK',
1781
2796
  style='ROA',
@@ -1783,43 +2798,46 @@ class Client(OpenApiClient):
1783
2798
  body_type='json'
1784
2799
  )
1785
2800
  return TeaCore.from_map(
1786
- agent_run_20250910_models.ListCodeInterpretersResponse(),
2801
+ agent_run_20250910_models.ListMemorySessionsResponse(),
1787
2802
  self.call_api(params, req, runtime)
1788
2803
  )
1789
2804
 
1790
- async def list_code_interpreters_with_options_async(
2805
+ async def list_memory_sessions_with_options_async(
1791
2806
  self,
1792
- request: agent_run_20250910_models.ListCodeInterpretersRequest,
2807
+ memory_name: str,
2808
+ request: agent_run_20250910_models.ListMemorySessionsRequest,
1793
2809
  headers: Dict[str, str],
1794
2810
  runtime: util_models.RuntimeOptions,
1795
- ) -> agent_run_20250910_models.ListCodeInterpretersResponse:
2811
+ ) -> agent_run_20250910_models.ListMemorySessionsResponse:
1796
2812
  """
1797
- @summary 列出代码解释器
2813
+ @summary 列出内存会话
1798
2814
 
1799
- @description 获取当前用户的所有代码解释器实例列表,支持按名称等条件过滤,支持分页查询。
2815
+ @description 获取指定内存实例的所有会话列表,支持按时间范围过滤和分页查询。会话是AgentRun中用于存储对话历史和管理上下文的重要组件。
1800
2816
 
1801
- @param request: ListCodeInterpretersRequest
2817
+ @param request: ListMemorySessionsRequest
1802
2818
  @param headers: map
1803
2819
  @param runtime: runtime options for this request RuntimeOptions
1804
- @return: ListCodeInterpretersResponse
2820
+ @return: ListMemorySessionsResponse
1805
2821
  """
1806
2822
  UtilClient.validate_model(request)
1807
2823
  query = {}
1808
- if not UtilClient.is_unset(request.code_interpreter_name):
1809
- query['codeInterpreterName'] = request.code_interpreter_name
2824
+ if not UtilClient.is_unset(request.from_):
2825
+ query['from'] = request.from_
1810
2826
  if not UtilClient.is_unset(request.page_number):
1811
2827
  query['pageNumber'] = request.page_number
1812
2828
  if not UtilClient.is_unset(request.page_size):
1813
2829
  query['pageSize'] = request.page_size
2830
+ if not UtilClient.is_unset(request.to):
2831
+ query['to'] = request.to
1814
2832
  req = open_api_models.OpenApiRequest(
1815
2833
  headers=headers,
1816
2834
  query=OpenApiUtilClient.query(query)
1817
2835
  )
1818
2836
  params = open_api_models.Params(
1819
- action='ListCodeInterpreters',
2837
+ action='ListMemorySessions',
1820
2838
  version='2025-09-10',
1821
2839
  protocol='HTTPS',
1822
- pathname=f'/2025-09-10/agents/code-interpreters',
2840
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}/sessions',
1823
2841
  method='GET',
1824
2842
  auth_type='AK',
1825
2843
  style='ROA',
@@ -1827,41 +2845,43 @@ class Client(OpenApiClient):
1827
2845
  body_type='json'
1828
2846
  )
1829
2847
  return TeaCore.from_map(
1830
- agent_run_20250910_models.ListCodeInterpretersResponse(),
2848
+ agent_run_20250910_models.ListMemorySessionsResponse(),
1831
2849
  await self.call_api_async(params, req, runtime)
1832
2850
  )
1833
2851
 
1834
- def list_code_interpreters(
2852
+ def list_memory_sessions(
1835
2853
  self,
1836
- request: agent_run_20250910_models.ListCodeInterpretersRequest,
1837
- ) -> agent_run_20250910_models.ListCodeInterpretersResponse:
2854
+ memory_name: str,
2855
+ request: agent_run_20250910_models.ListMemorySessionsRequest,
2856
+ ) -> agent_run_20250910_models.ListMemorySessionsResponse:
1838
2857
  """
1839
- @summary 列出代码解释器
2858
+ @summary 列出内存会话
1840
2859
 
1841
- @description 获取当前用户的所有代码解释器实例列表,支持按名称等条件过滤,支持分页查询。
2860
+ @description 获取指定内存实例的所有会话列表,支持按时间范围过滤和分页查询。会话是AgentRun中用于存储对话历史和管理上下文的重要组件。
1842
2861
 
1843
- @param request: ListCodeInterpretersRequest
1844
- @return: ListCodeInterpretersResponse
2862
+ @param request: ListMemorySessionsRequest
2863
+ @return: ListMemorySessionsResponse
1845
2864
  """
1846
2865
  runtime = util_models.RuntimeOptions()
1847
2866
  headers = {}
1848
- return self.list_code_interpreters_with_options(request, headers, runtime)
2867
+ return self.list_memory_sessions_with_options(memory_name, request, headers, runtime)
1849
2868
 
1850
- async def list_code_interpreters_async(
2869
+ async def list_memory_sessions_async(
1851
2870
  self,
1852
- request: agent_run_20250910_models.ListCodeInterpretersRequest,
1853
- ) -> agent_run_20250910_models.ListCodeInterpretersResponse:
2871
+ memory_name: str,
2872
+ request: agent_run_20250910_models.ListMemorySessionsRequest,
2873
+ ) -> agent_run_20250910_models.ListMemorySessionsResponse:
1854
2874
  """
1855
- @summary 列出代码解释器
2875
+ @summary 列出内存会话
1856
2876
 
1857
- @description 获取当前用户的所有代码解释器实例列表,支持按名称等条件过滤,支持分页查询。
2877
+ @description 获取指定内存实例的所有会话列表,支持按时间范围过滤和分页查询。会话是AgentRun中用于存储对话历史和管理上下文的重要组件。
1858
2878
 
1859
- @param request: ListCodeInterpretersRequest
1860
- @return: ListCodeInterpretersResponse
2879
+ @param request: ListMemorySessionsRequest
2880
+ @return: ListMemorySessionsResponse
1861
2881
  """
1862
2882
  runtime = util_models.RuntimeOptions()
1863
2883
  headers = {}
1864
- return await self.list_code_interpreters_with_options_async(request, headers, runtime)
2884
+ return await self.list_memory_sessions_with_options_async(memory_name, request, headers, runtime)
1865
2885
 
1866
2886
  def publish_runtime_version_with_options(
1867
2887
  self,
@@ -1973,6 +2993,130 @@ class Client(OpenApiClient):
1973
2993
  headers = {}
1974
2994
  return await self.publish_runtime_version_with_options_async(agent_runtime_id, request, headers, runtime)
1975
2995
 
2996
+ def retrieve_memory_with_options(
2997
+ self,
2998
+ memory_name: str,
2999
+ request: agent_run_20250910_models.RetrieveMemoryRequest,
3000
+ headers: Dict[str, str],
3001
+ runtime: util_models.RuntimeOptions,
3002
+ ) -> agent_run_20250910_models.RetrieveMemoryResponse:
3003
+ """
3004
+ @summary RetrieveMemory
3005
+
3006
+ @param request: RetrieveMemoryRequest
3007
+ @param headers: map
3008
+ @param runtime: runtime options for this request RuntimeOptions
3009
+ @return: RetrieveMemoryResponse
3010
+ """
3011
+ UtilClient.validate_model(request)
3012
+ body = {}
3013
+ if not UtilClient.is_unset(request.from_):
3014
+ body['from'] = request.from_
3015
+ if not UtilClient.is_unset(request.query):
3016
+ body['query'] = request.query
3017
+ if not UtilClient.is_unset(request.store):
3018
+ body['store'] = request.store
3019
+ if not UtilClient.is_unset(request.to):
3020
+ body['to'] = request.to
3021
+ if not UtilClient.is_unset(request.topk):
3022
+ body['topk'] = request.topk
3023
+ req = open_api_models.OpenApiRequest(
3024
+ headers=headers,
3025
+ body=OpenApiUtilClient.parse_to_map(body)
3026
+ )
3027
+ params = open_api_models.Params(
3028
+ action='RetrieveMemory',
3029
+ version='2025-09-10',
3030
+ protocol='HTTPS',
3031
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}/records',
3032
+ method='POST',
3033
+ auth_type='AK',
3034
+ style='ROA',
3035
+ req_body_type='json',
3036
+ body_type='json'
3037
+ )
3038
+ return TeaCore.from_map(
3039
+ agent_run_20250910_models.RetrieveMemoryResponse(),
3040
+ self.call_api(params, req, runtime)
3041
+ )
3042
+
3043
+ async def retrieve_memory_with_options_async(
3044
+ self,
3045
+ memory_name: str,
3046
+ request: agent_run_20250910_models.RetrieveMemoryRequest,
3047
+ headers: Dict[str, str],
3048
+ runtime: util_models.RuntimeOptions,
3049
+ ) -> agent_run_20250910_models.RetrieveMemoryResponse:
3050
+ """
3051
+ @summary RetrieveMemory
3052
+
3053
+ @param request: RetrieveMemoryRequest
3054
+ @param headers: map
3055
+ @param runtime: runtime options for this request RuntimeOptions
3056
+ @return: RetrieveMemoryResponse
3057
+ """
3058
+ UtilClient.validate_model(request)
3059
+ body = {}
3060
+ if not UtilClient.is_unset(request.from_):
3061
+ body['from'] = request.from_
3062
+ if not UtilClient.is_unset(request.query):
3063
+ body['query'] = request.query
3064
+ if not UtilClient.is_unset(request.store):
3065
+ body['store'] = request.store
3066
+ if not UtilClient.is_unset(request.to):
3067
+ body['to'] = request.to
3068
+ if not UtilClient.is_unset(request.topk):
3069
+ body['topk'] = request.topk
3070
+ req = open_api_models.OpenApiRequest(
3071
+ headers=headers,
3072
+ body=OpenApiUtilClient.parse_to_map(body)
3073
+ )
3074
+ params = open_api_models.Params(
3075
+ action='RetrieveMemory',
3076
+ version='2025-09-10',
3077
+ protocol='HTTPS',
3078
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}/records',
3079
+ method='POST',
3080
+ auth_type='AK',
3081
+ style='ROA',
3082
+ req_body_type='json',
3083
+ body_type='json'
3084
+ )
3085
+ return TeaCore.from_map(
3086
+ agent_run_20250910_models.RetrieveMemoryResponse(),
3087
+ await self.call_api_async(params, req, runtime)
3088
+ )
3089
+
3090
+ def retrieve_memory(
3091
+ self,
3092
+ memory_name: str,
3093
+ request: agent_run_20250910_models.RetrieveMemoryRequest,
3094
+ ) -> agent_run_20250910_models.RetrieveMemoryResponse:
3095
+ """
3096
+ @summary RetrieveMemory
3097
+
3098
+ @param request: RetrieveMemoryRequest
3099
+ @return: RetrieveMemoryResponse
3100
+ """
3101
+ runtime = util_models.RuntimeOptions()
3102
+ headers = {}
3103
+ return self.retrieve_memory_with_options(memory_name, request, headers, runtime)
3104
+
3105
+ async def retrieve_memory_async(
3106
+ self,
3107
+ memory_name: str,
3108
+ request: agent_run_20250910_models.RetrieveMemoryRequest,
3109
+ ) -> agent_run_20250910_models.RetrieveMemoryResponse:
3110
+ """
3111
+ @summary RetrieveMemory
3112
+
3113
+ @param request: RetrieveMemoryRequest
3114
+ @return: RetrieveMemoryResponse
3115
+ """
3116
+ runtime = util_models.RuntimeOptions()
3117
+ headers = {}
3118
+ return await self.retrieve_memory_with_options_async(memory_name, request, headers, runtime)
3119
+
1976
3120
  def update_agent_runtime_with_options(
1977
3121
  self,
1978
3122
  agent_runtime_id: str,
@@ -2188,3 +3332,123 @@ class Client(OpenApiClient):
2188
3332
  runtime = util_models.RuntimeOptions()
2189
3333
  headers = {}
2190
3334
  return await self.update_agent_runtime_endpoint_with_options_async(agent_runtime_id, agent_runtime_endpoint_id, request, headers, runtime)
3335
+
3336
+ def update_memory_with_options(
3337
+ self,
3338
+ memory_name: str,
3339
+ request: agent_run_20250910_models.UpdateMemoryRequest,
3340
+ headers: Dict[str, str],
3341
+ runtime: util_models.RuntimeOptions,
3342
+ ) -> agent_run_20250910_models.UpdateMemoryResponse:
3343
+ """
3344
+ @summary Update Memory
3345
+
3346
+ @param request: UpdateMemoryRequest
3347
+ @param headers: map
3348
+ @param runtime: runtime options for this request RuntimeOptions
3349
+ @return: UpdateMemoryResponse
3350
+ """
3351
+ UtilClient.validate_model(request)
3352
+ body = {}
3353
+ if not UtilClient.is_unset(request.long_ttl):
3354
+ body['longTtl'] = request.long_ttl
3355
+ if not UtilClient.is_unset(request.permanent):
3356
+ body['permanent'] = request.permanent
3357
+ if not UtilClient.is_unset(request.short_ttl):
3358
+ body['shortTtl'] = request.short_ttl
3359
+ if not UtilClient.is_unset(request.strategy):
3360
+ body['strategy'] = request.strategy
3361
+ req = open_api_models.OpenApiRequest(
3362
+ headers=headers,
3363
+ body=OpenApiUtilClient.parse_to_map(body)
3364
+ )
3365
+ params = open_api_models.Params(
3366
+ action='UpdateMemory',
3367
+ version='2025-09-10',
3368
+ protocol='HTTPS',
3369
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}',
3370
+ method='PUT',
3371
+ auth_type='AK',
3372
+ style='ROA',
3373
+ req_body_type='json',
3374
+ body_type='json'
3375
+ )
3376
+ return TeaCore.from_map(
3377
+ agent_run_20250910_models.UpdateMemoryResponse(),
3378
+ self.call_api(params, req, runtime)
3379
+ )
3380
+
3381
+ async def update_memory_with_options_async(
3382
+ self,
3383
+ memory_name: str,
3384
+ request: agent_run_20250910_models.UpdateMemoryRequest,
3385
+ headers: Dict[str, str],
3386
+ runtime: util_models.RuntimeOptions,
3387
+ ) -> agent_run_20250910_models.UpdateMemoryResponse:
3388
+ """
3389
+ @summary Update Memory
3390
+
3391
+ @param request: UpdateMemoryRequest
3392
+ @param headers: map
3393
+ @param runtime: runtime options for this request RuntimeOptions
3394
+ @return: UpdateMemoryResponse
3395
+ """
3396
+ UtilClient.validate_model(request)
3397
+ body = {}
3398
+ if not UtilClient.is_unset(request.long_ttl):
3399
+ body['longTtl'] = request.long_ttl
3400
+ if not UtilClient.is_unset(request.permanent):
3401
+ body['permanent'] = request.permanent
3402
+ if not UtilClient.is_unset(request.short_ttl):
3403
+ body['shortTtl'] = request.short_ttl
3404
+ if not UtilClient.is_unset(request.strategy):
3405
+ body['strategy'] = request.strategy
3406
+ req = open_api_models.OpenApiRequest(
3407
+ headers=headers,
3408
+ body=OpenApiUtilClient.parse_to_map(body)
3409
+ )
3410
+ params = open_api_models.Params(
3411
+ action='UpdateMemory',
3412
+ version='2025-09-10',
3413
+ protocol='HTTPS',
3414
+ pathname=f'/2025-09-10/agents/memories/{OpenApiUtilClient.get_encode_param(memory_name)}',
3415
+ method='PUT',
3416
+ auth_type='AK',
3417
+ style='ROA',
3418
+ req_body_type='json',
3419
+ body_type='json'
3420
+ )
3421
+ return TeaCore.from_map(
3422
+ agent_run_20250910_models.UpdateMemoryResponse(),
3423
+ await self.call_api_async(params, req, runtime)
3424
+ )
3425
+
3426
+ def update_memory(
3427
+ self,
3428
+ memory_name: str,
3429
+ request: agent_run_20250910_models.UpdateMemoryRequest,
3430
+ ) -> agent_run_20250910_models.UpdateMemoryResponse:
3431
+ """
3432
+ @summary Update Memory
3433
+
3434
+ @param request: UpdateMemoryRequest
3435
+ @return: UpdateMemoryResponse
3436
+ """
3437
+ runtime = util_models.RuntimeOptions()
3438
+ headers = {}
3439
+ return self.update_memory_with_options(memory_name, request, headers, runtime)
3440
+
3441
+ async def update_memory_async(
3442
+ self,
3443
+ memory_name: str,
3444
+ request: agent_run_20250910_models.UpdateMemoryRequest,
3445
+ ) -> agent_run_20250910_models.UpdateMemoryResponse:
3446
+ """
3447
+ @summary Update Memory
3448
+
3449
+ @param request: UpdateMemoryRequest
3450
+ @return: UpdateMemoryResponse
3451
+ """
3452
+ runtime = util_models.RuntimeOptions()
3453
+ headers = {}
3454
+ return await self.update_memory_with_options_async(memory_name, request, headers, runtime)