@@ -428,15 +428,16 @@ paths:
428
428
$ref : ' #/components/responses/ml.delete_agent@200'
429
429
/_plugins/_ml/memory :
430
430
get :
431
- operationId : ml.get_memory .0
432
- x-operation-group : ml.get_memory
431
+ operationId : ml.get_all_memories .0
432
+ x-operation-group : ml.get_all_memories
433
433
x-version-added : ' 2.12'
434
- description : Get a memory.
435
- requestBody :
436
- $ref : ' #/components/requestBodies/ml.get_memory'
434
+ description : Get all memories.
435
+ parameters :
436
+ - $ref : ' #/components/parameters/ml.get_all_memories::query.max_results'
437
+ - $ref : ' #/components/parameters/ml.get_all_memories::query.next_token'
437
438
responses :
438
439
' 200 ' :
439
- $ref : ' #/components/responses/ml.get_memory @200'
440
+ $ref : ' #/components/responses/ml.get_all_memories @200'
440
441
post :
441
442
operationId : ml.create_memory.0
442
443
x-operation-group : ml.create_memory
@@ -449,12 +450,10 @@ paths:
449
450
$ref : ' #/components/responses/ml.create_memory@200'
450
451
/_plugins/_ml/memory/{memory_id} :
451
452
get :
452
- operationId : ml.get_memory.1
453
+ operationId : ml.get_memory.0
453
454
x-operation-group : ml.get_memory
454
455
x-version-added : ' 2.12'
455
456
description : Get a memory.
456
- requestBody :
457
- $ref : ' #/components/requestBodies/ml.get_memory'
458
457
parameters :
459
458
- $ref : ' #/components/parameters/ml.get_memory::path.memory_id'
460
459
responses :
@@ -505,15 +504,17 @@ paths:
505
504
$ref : ' #/components/responses/ml.search_memory@200'
506
505
/_plugins/_ml/memory/{memory_id}/messages :
507
506
get :
508
- operationId : ml.get_message .0
509
- x-operation-group : ml.get_message
507
+ operationId : ml.get_all_messages .0
508
+ x-operation-group : ml.get_all_messages
510
509
x-version-added : ' 2.12'
511
- description : Get a message .
510
+ description : Get all messages in a memory .
512
511
parameters :
513
- - $ref : ' #/components/parameters/ml.get_message::path.memory_id'
512
+ - $ref : ' #/components/parameters/ml.get_all_messages::path.memory_id'
513
+ - $ref : ' #/components/parameters/ml.get_all_messages::query.max_results'
514
+ - $ref : ' #/components/parameters/ml.get_all_messages::query.next_token'
514
515
responses :
515
516
' 200 ' :
516
- $ref : ' #/components/responses/ml.get_message @200'
517
+ $ref : ' #/components/responses/ml.get_all_messages @200'
517
518
post :
518
519
operationId : ml.create_message.0
519
520
x-operation-group : ml.create_message
@@ -528,7 +529,7 @@ paths:
528
529
$ref : ' #/components/responses/ml.create_message@200'
529
530
/_plugins/_ml/memory/message/{message_id} :
530
531
get :
531
- operationId : ml.get_message.1
532
+ operationId : ml.get_message.0
532
533
x-operation-group : ml.get_message
533
534
x-version-added : ' 2.12'
534
535
description : Get a message.
@@ -582,6 +583,8 @@ paths:
582
583
description : Get a message traces.
583
584
parameters :
584
585
- $ref : ' #/components/parameters/ml.get_message_traces::path.message_id'
586
+ - $ref : ' #/components/parameters/ml.get_message_traces::query.max_results'
587
+ - $ref : ' #/components/parameters/ml.get_message_traces::query.next_token'
585
588
responses :
586
589
' 200 ' :
587
590
$ref : ' #/components/responses/ml.get_message_traces@200'
@@ -817,7 +820,7 @@ components:
817
820
version :
818
821
$ref : ' ../schemas/_common.yaml#/components/schemas/VersionString'
819
822
model_format :
820
- $ref : ' ../schemas/_common.yaml#/components/schemas/ModelFormat'
823
+ $ref : ' ../schemas/ml. _common.yaml#/components/schemas/ModelFormat'
821
824
description :
822
825
type : string
823
826
description : The model description.
@@ -838,7 +841,7 @@ components:
838
841
version :
839
842
$ref : ' ../schemas/_common.yaml#/components/schemas/VersionString'
840
843
model_format :
841
- $ref : ' ../schemas/_common.yaml#/components/schemas/ModelFormat'
844
+ $ref : ' ../schemas/ml. _common.yaml#/components/schemas/ModelFormat'
842
845
model_group_id :
843
846
$ref : ' ../schemas/_common.yaml#/components/schemas/Id'
844
847
model_content_hash_value :
@@ -875,7 +878,7 @@ components:
875
878
version :
876
879
$ref : ' ../schemas/_common.yaml#/components/schemas/VersionString'
877
880
model_format :
878
- $ref : ' ../schemas/_common.yaml#/components/schemas/ModelFormat'
881
+ $ref : ' ../schemas/ml. _common.yaml#/components/schemas/ModelFormat'
879
882
model_group_id :
880
883
$ref : ' ../schemas/_common.yaml#/components/schemas/Id'
881
884
model_content_hash_value :
@@ -934,7 +937,7 @@ components:
934
937
version :
935
938
$ref : ' ../schemas/_common.yaml#/components/schemas/VersionString'
936
939
model_format :
937
- $ref : ' ../schemas/_common.yaml#/components/schemas/ModelFormat'
940
+ $ref : ' ../schemas/ml. _common.yaml#/components/schemas/ModelFormat'
938
941
description :
939
942
type : string
940
943
description : The model description.
@@ -1005,8 +1008,6 @@ components:
1005
1008
type : array
1006
1009
items :
1007
1010
$ref : ' ../schemas/_common.yaml#/components/schemas/Id'
1008
- required :
1009
- - model_ids
1010
1011
ml.unload_model :
1011
1012
content :
1012
1013
application/json :
@@ -1021,8 +1022,6 @@ components:
1021
1022
type : array
1022
1023
items :
1023
1024
$ref : ' ../schemas/_common.yaml#/components/schemas/Id'
1024
- required :
1025
- - model_ids
1026
1025
ml.predict_model :
1027
1026
content :
1028
1027
application/json :
@@ -1214,20 +1213,6 @@ components:
1214
1213
required :
1215
1214
- name
1216
1215
- type
1217
- ml.get_memory :
1218
- content :
1219
- application/json :
1220
- schema :
1221
- type : object
1222
- properties :
1223
- max_results :
1224
- type : integer
1225
- format : int64
1226
- description : The maximum number of results to return.
1227
- next_token :
1228
- type : integer
1229
- format : int64
1230
- description : The index of the first memory in the sorted list of memories to return.
1231
1216
ml.create_memory :
1232
1217
content :
1233
1218
application/json :
@@ -1325,15 +1310,19 @@ components:
1325
1310
type : object
1326
1311
properties :
1327
1312
user_rate_limiter :
1328
- $ref : ' ../schemas/ml._common.yaml#/components/schemas/UserRateLimiter'
1313
+ type : object
1314
+ additionalProperties :
1315
+ $ref : ' ../schemas/ml._common.yaml#/components/schemas/RateLimiter'
1329
1316
ml.update_controller :
1330
1317
content :
1331
1318
application/json :
1332
1319
schema :
1333
1320
type : object
1334
1321
properties :
1335
1322
user_rate_limiter :
1336
- $ref : ' ../schemas/ml._common.yaml#/components/schemas/UserRateLimiter'
1323
+ type : object
1324
+ additionalProperties :
1325
+ $ref : ' ../schemas/ml._common.yaml#/components/schemas/RateLimiter'
1337
1326
model_id :
1338
1327
$ref : ' ../schemas/_common.yaml#/components/schemas/Name'
1339
1328
ml.get_profile :
@@ -1520,7 +1509,7 @@ components:
1520
1509
content :
1521
1510
application/json :
1522
1511
schema :
1523
- $ref : ' ../schemas/ml. _common.yaml#/components/schemas/UpdateModelResponse '
1512
+ $ref : ' ../schemas/_common.yaml#/components/schemas/WriteResponseBase '
1524
1513
ml.delete_task@200 :
1525
1514
content :
1526
1515
application/json :
@@ -1596,7 +1585,23 @@ components:
1596
1585
content :
1597
1586
application/json :
1598
1587
schema :
1599
- $ref : ' ../schemas/ml._common.yaml#/components/schemas/GetMemoryResponse'
1588
+ $ref : ' ../schemas/ml._common.yaml#/components/schemas/Memory'
1589
+ ml.get_all_memories@200 :
1590
+ content :
1591
+ application/json :
1592
+ schema :
1593
+ type : object
1594
+ properties :
1595
+ memories :
1596
+ type : array
1597
+ items :
1598
+ $ref : ' ../schemas/ml._common.yaml#/components/schemas/Memory'
1599
+ next_token :
1600
+ description : The index of the next memory after the last memory in the returned list.
1601
+ type : integer
1602
+ format : int32
1603
+ required :
1604
+ - memories
1600
1605
ml.create_memory@200 :
1601
1606
content :
1602
1607
application/json :
@@ -1642,7 +1647,23 @@ components:
1642
1647
content :
1643
1648
application/json :
1644
1649
schema :
1645
- $ref : ' ../schemas/ml._common.yaml#/components/schemas/GetMessageResponse'
1650
+ $ref : ' ../schemas/ml._common.yaml#/components/schemas/Message'
1651
+ ml.get_all_messages@200 :
1652
+ content :
1653
+ application/json :
1654
+ schema :
1655
+ type : object
1656
+ properties :
1657
+ messages :
1658
+ type : array
1659
+ items :
1660
+ $ref : ' ../schemas/ml._common.yaml#/components/schemas/Message'
1661
+ next_token :
1662
+ description : The index of the next message after the last message in the returned list.
1663
+ type : integer
1664
+ format : int32
1665
+ required :
1666
+ - messages
1646
1667
ml.update_message@200 :
1647
1668
content :
1648
1669
application/json :
@@ -1657,15 +1678,27 @@ components:
1657
1678
content :
1658
1679
application/json :
1659
1680
schema :
1660
- $ref : ' ../schemas/ml._common.yaml#/components/schemas/GetMessageTracesResponse'
1681
+ type : object
1682
+ properties :
1683
+ traces :
1684
+ type : array
1685
+ items :
1686
+ $ref : ' ../schemas/ml._common.yaml#/components/schemas/Message'
1687
+ next_token :
1688
+ type : integer
1689
+ format : int32
1690
+ required :
1691
+ - traces
1661
1692
ml.get_controller@200 :
1662
1693
content :
1663
1694
application/json :
1664
1695
schema :
1665
1696
type : object
1666
1697
properties :
1667
1698
user_rate_limiter :
1668
- $ref : ' ../schemas/ml._common.yaml#/components/schemas/UserRateLimiter'
1699
+ type : object
1700
+ additionalProperties :
1701
+ $ref : ' ../schemas/ml._common.yaml#/components/schemas/RateLimiter'
1669
1702
model_id :
1670
1703
$ref : ' ../schemas/_common.yaml#/components/schemas/Name'
1671
1704
ml.create_controller@200 :
@@ -1709,6 +1742,22 @@ components:
1709
1742
schema :
1710
1743
$ref : ' ../schemas/ml._common.yaml#/components/schemas/GetStatsResponse'
1711
1744
parameters :
1745
+ ml.get_all_memories::query.max_results :
1746
+ name : max_results
1747
+ in : query
1748
+ required : false
1749
+ schema :
1750
+ description : The maximum number of results to return. If there are fewer memories than the number set in `max_results`, the response returns only the number of memories that exist. Default is `10`.
1751
+ type : integer
1752
+ format : int32
1753
+ ml.get_all_memories::query.next_token :
1754
+ name : next_token
1755
+ in : query
1756
+ required : false
1757
+ schema :
1758
+ description : The index of the first memory in the sorted list of memories to return. Memories are ordered by `create_time`. For example, if memories `A`, `B`, and `C` exist, `next_token=1` returns memories `B` and `C`. Default is `0` (return all memories).
1759
+ type : integer
1760
+ format : int32
1712
1761
ml.get_model_group::path.model_group_id :
1713
1762
name : model_group_id
1714
1763
in : path
@@ -1885,12 +1934,26 @@ components:
1885
1934
required : true
1886
1935
schema :
1887
1936
type : string
1888
- ml.get_message ::path.memory_id :
1937
+ ml.get_all_messages ::path.memory_id :
1889
1938
name : memory_id
1890
1939
in : path
1891
1940
required : true
1892
1941
schema :
1893
1942
type : string
1943
+ ml.get_all_messages::query.max_results :
1944
+ name : max_results
1945
+ in : query
1946
+ required : false
1947
+ schema :
1948
+ type : integer
1949
+ format : int32
1950
+ ml.get_all_messages::query.next_token :
1951
+ name : next_token
1952
+ in : query
1953
+ required : false
1954
+ schema :
1955
+ type : integer
1956
+ format : int32
1894
1957
ml.get_message::path.message_id :
1895
1958
name : message_id
1896
1959
in : path
@@ -1915,6 +1978,20 @@ components:
1915
1978
required : true
1916
1979
schema :
1917
1980
type : string
1981
+ ml.get_message_traces::query.max_results :
1982
+ name : max_results
1983
+ in : query
1984
+ required : false
1985
+ schema :
1986
+ type : integer
1987
+ format : int32
1988
+ ml.get_message_traces::query.next_token :
1989
+ name : next_token
1990
+ in : query
1991
+ required : false
1992
+ schema :
1993
+ type : integer
1994
+ format : int32
1918
1995
ml.get_controller::path.model_id :
1919
1996
name : model_id
1920
1997
in : path
0 commit comments