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