@voltagent/server-core 2.1.2 → 2.1.3

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.
@@ -1,4 +1,4 @@
1
- import { ServerProviderDeps, ConversationStepRecord, A2AServerRegistry } from '@voltagent/core';
1
+ import { ServerProviderDeps, ConversationStepRecord, Conversation, A2AServerRegistry } from '@voltagent/core';
2
2
  import { Logger, LogLevel, LogEntry, LogFilter } from '@voltagent/internal';
3
3
  import { UIMessage } from 'ai';
4
4
  import { A2AServerLike } from '@voltagent/internal/a2a';
@@ -848,7 +848,7 @@ declare const OBSERVABILITY_MEMORY_ROUTES: {
848
848
  readonly summary: "List memory conversations";
849
849
  readonly description: "Retrieve conversations stored in memory with optional filtering by agent or user. Results are paginated and sorted by last update by default.";
850
850
  readonly tags: readonly ["Observability", "Memory"];
851
- readonly operationId: "listMemoryConversations";
851
+ readonly operationId: "listObservabilityMemoryConversations";
852
852
  readonly responses: {
853
853
  readonly 200: {
854
854
  readonly description: "Successfully retrieved conversations";
@@ -976,6 +976,291 @@ declare const TOOL_ROUTES: {
976
976
  };
977
977
  };
978
978
  };
979
+ /**
980
+ * Memory route definitions
981
+ */
982
+ declare const MEMORY_ROUTES: {
983
+ readonly listConversations: {
984
+ readonly method: "get";
985
+ readonly path: "/api/memory/conversations";
986
+ readonly summary: "List memory conversations";
987
+ readonly description: "Retrieve conversations stored in memory with optional filtering by resource or user.";
988
+ readonly tags: readonly ["Memory"];
989
+ readonly operationId: "listMemoryConversations";
990
+ readonly responses: {
991
+ readonly 200: {
992
+ readonly description: "Successfully retrieved memory conversations";
993
+ readonly contentType: "application/json";
994
+ };
995
+ readonly 400: {
996
+ readonly description: "Invalid query parameters";
997
+ readonly contentType: "application/json";
998
+ };
999
+ readonly 500: {
1000
+ readonly description: "Failed to list memory conversations";
1001
+ readonly contentType: "application/json";
1002
+ };
1003
+ };
1004
+ };
1005
+ readonly getConversation: {
1006
+ readonly method: "get";
1007
+ readonly path: "/api/memory/conversations/:conversationId";
1008
+ readonly summary: "Get conversation by ID";
1009
+ readonly description: "Retrieve a single conversation by ID from memory storage.";
1010
+ readonly tags: readonly ["Memory"];
1011
+ readonly operationId: "getMemoryConversation";
1012
+ readonly responses: {
1013
+ readonly 200: {
1014
+ readonly description: "Successfully retrieved conversation";
1015
+ readonly contentType: "application/json";
1016
+ };
1017
+ readonly 404: {
1018
+ readonly description: "Conversation not found";
1019
+ readonly contentType: "application/json";
1020
+ };
1021
+ readonly 500: {
1022
+ readonly description: "Failed to retrieve conversation";
1023
+ readonly contentType: "application/json";
1024
+ };
1025
+ };
1026
+ };
1027
+ readonly listMessages: {
1028
+ readonly method: "get";
1029
+ readonly path: "/api/memory/conversations/:conversationId/messages";
1030
+ readonly summary: "List conversation messages";
1031
+ readonly description: "Retrieve messages for a conversation with optional filtering.";
1032
+ readonly tags: readonly ["Memory"];
1033
+ readonly operationId: "listMemoryConversationMessages";
1034
+ readonly responses: {
1035
+ readonly 200: {
1036
+ readonly description: "Successfully retrieved conversation messages";
1037
+ readonly contentType: "application/json";
1038
+ };
1039
+ readonly 404: {
1040
+ readonly description: "Conversation not found";
1041
+ readonly contentType: "application/json";
1042
+ };
1043
+ readonly 500: {
1044
+ readonly description: "Failed to retrieve conversation messages";
1045
+ readonly contentType: "application/json";
1046
+ };
1047
+ };
1048
+ };
1049
+ readonly getMemoryWorkingMemory: {
1050
+ readonly method: "get";
1051
+ readonly path: "/api/memory/conversations/:conversationId/working-memory";
1052
+ readonly summary: "Get working memory";
1053
+ readonly description: "Retrieve working memory content for a conversation.";
1054
+ readonly tags: readonly ["Memory"];
1055
+ readonly operationId: "getMemoryWorkingMemory";
1056
+ readonly responses: {
1057
+ readonly 200: {
1058
+ readonly description: "Successfully retrieved working memory";
1059
+ readonly contentType: "application/json";
1060
+ };
1061
+ readonly 404: {
1062
+ readonly description: "Working memory not found";
1063
+ readonly contentType: "application/json";
1064
+ };
1065
+ readonly 500: {
1066
+ readonly description: "Failed to retrieve working memory";
1067
+ readonly contentType: "application/json";
1068
+ };
1069
+ };
1070
+ };
1071
+ readonly saveMessages: {
1072
+ readonly method: "post";
1073
+ readonly path: "/api/memory/save-messages";
1074
+ readonly summary: "Save messages";
1075
+ readonly description: "Persist new messages into memory storage.";
1076
+ readonly tags: readonly ["Memory"];
1077
+ readonly operationId: "saveMemoryMessages";
1078
+ readonly responses: {
1079
+ readonly 200: {
1080
+ readonly description: "Successfully saved messages";
1081
+ readonly contentType: "application/json";
1082
+ };
1083
+ readonly 400: {
1084
+ readonly description: "Invalid request body";
1085
+ readonly contentType: "application/json";
1086
+ };
1087
+ readonly 500: {
1088
+ readonly description: "Failed to save messages";
1089
+ readonly contentType: "application/json";
1090
+ };
1091
+ };
1092
+ };
1093
+ readonly createConversation: {
1094
+ readonly method: "post";
1095
+ readonly path: "/api/memory/conversations";
1096
+ readonly summary: "Create conversation";
1097
+ readonly description: "Create a new conversation in memory storage.";
1098
+ readonly tags: readonly ["Memory"];
1099
+ readonly operationId: "createMemoryConversation";
1100
+ readonly responses: {
1101
+ readonly 200: {
1102
+ readonly description: "Successfully created conversation";
1103
+ readonly contentType: "application/json";
1104
+ };
1105
+ readonly 400: {
1106
+ readonly description: "Invalid request body";
1107
+ readonly contentType: "application/json";
1108
+ };
1109
+ readonly 409: {
1110
+ readonly description: "Conversation already exists";
1111
+ readonly contentType: "application/json";
1112
+ };
1113
+ readonly 500: {
1114
+ readonly description: "Failed to create conversation";
1115
+ readonly contentType: "application/json";
1116
+ };
1117
+ };
1118
+ };
1119
+ readonly updateConversation: {
1120
+ readonly method: "patch";
1121
+ readonly path: "/api/memory/conversations/:conversationId";
1122
+ readonly summary: "Update conversation";
1123
+ readonly description: "Update an existing conversation in memory storage.";
1124
+ readonly tags: readonly ["Memory"];
1125
+ readonly operationId: "updateMemoryConversation";
1126
+ readonly responses: {
1127
+ readonly 200: {
1128
+ readonly description: "Successfully updated conversation";
1129
+ readonly contentType: "application/json";
1130
+ };
1131
+ readonly 400: {
1132
+ readonly description: "Invalid request body";
1133
+ readonly contentType: "application/json";
1134
+ };
1135
+ readonly 404: {
1136
+ readonly description: "Conversation not found";
1137
+ readonly contentType: "application/json";
1138
+ };
1139
+ readonly 500: {
1140
+ readonly description: "Failed to update conversation";
1141
+ readonly contentType: "application/json";
1142
+ };
1143
+ };
1144
+ };
1145
+ readonly deleteConversation: {
1146
+ readonly method: "delete";
1147
+ readonly path: "/api/memory/conversations/:conversationId";
1148
+ readonly summary: "Delete conversation";
1149
+ readonly description: "Delete a conversation and its messages from memory storage.";
1150
+ readonly tags: readonly ["Memory"];
1151
+ readonly operationId: "deleteMemoryConversation";
1152
+ readonly responses: {
1153
+ readonly 200: {
1154
+ readonly description: "Successfully deleted conversation";
1155
+ readonly contentType: "application/json";
1156
+ };
1157
+ readonly 404: {
1158
+ readonly description: "Conversation not found";
1159
+ readonly contentType: "application/json";
1160
+ };
1161
+ readonly 500: {
1162
+ readonly description: "Failed to delete conversation";
1163
+ readonly contentType: "application/json";
1164
+ };
1165
+ };
1166
+ };
1167
+ readonly cloneConversation: {
1168
+ readonly method: "post";
1169
+ readonly path: "/api/memory/conversations/:conversationId/clone";
1170
+ readonly summary: "Clone conversation";
1171
+ readonly description: "Create a copy of a conversation, optionally including messages.";
1172
+ readonly tags: readonly ["Memory"];
1173
+ readonly operationId: "cloneMemoryConversation";
1174
+ readonly responses: {
1175
+ readonly 200: {
1176
+ readonly description: "Successfully cloned conversation";
1177
+ readonly contentType: "application/json";
1178
+ };
1179
+ readonly 404: {
1180
+ readonly description: "Conversation not found";
1181
+ readonly contentType: "application/json";
1182
+ };
1183
+ readonly 409: {
1184
+ readonly description: "Conversation already exists";
1185
+ readonly contentType: "application/json";
1186
+ };
1187
+ readonly 500: {
1188
+ readonly description: "Failed to clone conversation";
1189
+ readonly contentType: "application/json";
1190
+ };
1191
+ };
1192
+ };
1193
+ readonly updateWorkingMemory: {
1194
+ readonly method: "post";
1195
+ readonly path: "/api/memory/conversations/:conversationId/working-memory";
1196
+ readonly summary: "Update working memory";
1197
+ readonly description: "Update working memory content for a conversation.";
1198
+ readonly tags: readonly ["Memory"];
1199
+ readonly operationId: "updateMemoryWorkingMemory";
1200
+ readonly responses: {
1201
+ readonly 200: {
1202
+ readonly description: "Successfully updated working memory";
1203
+ readonly contentType: "application/json";
1204
+ };
1205
+ readonly 400: {
1206
+ readonly description: "Invalid request body";
1207
+ readonly contentType: "application/json";
1208
+ };
1209
+ readonly 404: {
1210
+ readonly description: "Conversation not found";
1211
+ readonly contentType: "application/json";
1212
+ };
1213
+ readonly 500: {
1214
+ readonly description: "Failed to update working memory";
1215
+ readonly contentType: "application/json";
1216
+ };
1217
+ };
1218
+ };
1219
+ readonly deleteMessages: {
1220
+ readonly method: "post";
1221
+ readonly path: "/api/memory/messages/delete";
1222
+ readonly summary: "Delete messages";
1223
+ readonly description: "Delete specific messages from memory storage.";
1224
+ readonly tags: readonly ["Memory"];
1225
+ readonly operationId: "deleteMemoryMessages";
1226
+ readonly responses: {
1227
+ readonly 200: {
1228
+ readonly description: "Successfully deleted messages";
1229
+ readonly contentType: "application/json";
1230
+ };
1231
+ readonly 400: {
1232
+ readonly description: "Invalid request body";
1233
+ readonly contentType: "application/json";
1234
+ };
1235
+ readonly 500: {
1236
+ readonly description: "Failed to delete messages";
1237
+ readonly contentType: "application/json";
1238
+ };
1239
+ };
1240
+ };
1241
+ readonly searchMemory: {
1242
+ readonly method: "get";
1243
+ readonly path: "/api/memory/search";
1244
+ readonly summary: "Search memory";
1245
+ readonly description: "Search memory using semantic search when available.";
1246
+ readonly tags: readonly ["Memory"];
1247
+ readonly operationId: "searchMemory";
1248
+ readonly responses: {
1249
+ readonly 200: {
1250
+ readonly description: "Successfully searched memory";
1251
+ readonly contentType: "application/json";
1252
+ };
1253
+ readonly 400: {
1254
+ readonly description: "Invalid query parameters";
1255
+ readonly contentType: "application/json";
1256
+ };
1257
+ readonly 500: {
1258
+ readonly description: "Failed to search memory";
1259
+ readonly contentType: "application/json";
1260
+ };
1261
+ };
1262
+ };
1263
+ };
979
1264
  /**
980
1265
  * All route definitions combined
981
1266
  */
@@ -1004,7 +1289,7 @@ declare const ALL_ROUTES: {
1004
1289
  readonly summary: "List memory conversations";
1005
1290
  readonly description: "Retrieve conversations stored in memory with optional filtering by agent or user. Results are paginated and sorted by last update by default.";
1006
1291
  readonly tags: readonly ["Observability", "Memory"];
1007
- readonly operationId: "listMemoryConversations";
1292
+ readonly operationId: "listObservabilityMemoryConversations";
1008
1293
  readonly responses: {
1009
1294
  readonly 200: {
1010
1295
  readonly description: "Successfully retrieved conversations";
@@ -1250,6 +1535,286 @@ declare const ALL_ROUTES: {
1250
1535
  };
1251
1536
  };
1252
1537
  };
1538
+ readonly listConversations: {
1539
+ readonly method: "get";
1540
+ readonly path: "/api/memory/conversations";
1541
+ readonly summary: "List memory conversations";
1542
+ readonly description: "Retrieve conversations stored in memory with optional filtering by resource or user.";
1543
+ readonly tags: readonly ["Memory"];
1544
+ readonly operationId: "listMemoryConversations";
1545
+ readonly responses: {
1546
+ readonly 200: {
1547
+ readonly description: "Successfully retrieved memory conversations";
1548
+ readonly contentType: "application/json";
1549
+ };
1550
+ readonly 400: {
1551
+ readonly description: "Invalid query parameters";
1552
+ readonly contentType: "application/json";
1553
+ };
1554
+ readonly 500: {
1555
+ readonly description: "Failed to list memory conversations";
1556
+ readonly contentType: "application/json";
1557
+ };
1558
+ };
1559
+ };
1560
+ readonly getConversation: {
1561
+ readonly method: "get";
1562
+ readonly path: "/api/memory/conversations/:conversationId";
1563
+ readonly summary: "Get conversation by ID";
1564
+ readonly description: "Retrieve a single conversation by ID from memory storage.";
1565
+ readonly tags: readonly ["Memory"];
1566
+ readonly operationId: "getMemoryConversation";
1567
+ readonly responses: {
1568
+ readonly 200: {
1569
+ readonly description: "Successfully retrieved conversation";
1570
+ readonly contentType: "application/json";
1571
+ };
1572
+ readonly 404: {
1573
+ readonly description: "Conversation not found";
1574
+ readonly contentType: "application/json";
1575
+ };
1576
+ readonly 500: {
1577
+ readonly description: "Failed to retrieve conversation";
1578
+ readonly contentType: "application/json";
1579
+ };
1580
+ };
1581
+ };
1582
+ readonly listMessages: {
1583
+ readonly method: "get";
1584
+ readonly path: "/api/memory/conversations/:conversationId/messages";
1585
+ readonly summary: "List conversation messages";
1586
+ readonly description: "Retrieve messages for a conversation with optional filtering.";
1587
+ readonly tags: readonly ["Memory"];
1588
+ readonly operationId: "listMemoryConversationMessages";
1589
+ readonly responses: {
1590
+ readonly 200: {
1591
+ readonly description: "Successfully retrieved conversation messages";
1592
+ readonly contentType: "application/json";
1593
+ };
1594
+ readonly 404: {
1595
+ readonly description: "Conversation not found";
1596
+ readonly contentType: "application/json";
1597
+ };
1598
+ readonly 500: {
1599
+ readonly description: "Failed to retrieve conversation messages";
1600
+ readonly contentType: "application/json";
1601
+ };
1602
+ };
1603
+ };
1604
+ readonly getMemoryWorkingMemory: {
1605
+ readonly method: "get";
1606
+ readonly path: "/api/memory/conversations/:conversationId/working-memory";
1607
+ readonly summary: "Get working memory";
1608
+ readonly description: "Retrieve working memory content for a conversation.";
1609
+ readonly tags: readonly ["Memory"];
1610
+ readonly operationId: "getMemoryWorkingMemory";
1611
+ readonly responses: {
1612
+ readonly 200: {
1613
+ readonly description: "Successfully retrieved working memory";
1614
+ readonly contentType: "application/json";
1615
+ };
1616
+ readonly 404: {
1617
+ readonly description: "Working memory not found";
1618
+ readonly contentType: "application/json";
1619
+ };
1620
+ readonly 500: {
1621
+ readonly description: "Failed to retrieve working memory";
1622
+ readonly contentType: "application/json";
1623
+ };
1624
+ };
1625
+ };
1626
+ readonly saveMessages: {
1627
+ readonly method: "post";
1628
+ readonly path: "/api/memory/save-messages";
1629
+ readonly summary: "Save messages";
1630
+ readonly description: "Persist new messages into memory storage.";
1631
+ readonly tags: readonly ["Memory"];
1632
+ readonly operationId: "saveMemoryMessages";
1633
+ readonly responses: {
1634
+ readonly 200: {
1635
+ readonly description: "Successfully saved messages";
1636
+ readonly contentType: "application/json";
1637
+ };
1638
+ readonly 400: {
1639
+ readonly description: "Invalid request body";
1640
+ readonly contentType: "application/json";
1641
+ };
1642
+ readonly 500: {
1643
+ readonly description: "Failed to save messages";
1644
+ readonly contentType: "application/json";
1645
+ };
1646
+ };
1647
+ };
1648
+ readonly createConversation: {
1649
+ readonly method: "post";
1650
+ readonly path: "/api/memory/conversations";
1651
+ readonly summary: "Create conversation";
1652
+ readonly description: "Create a new conversation in memory storage.";
1653
+ readonly tags: readonly ["Memory"];
1654
+ readonly operationId: "createMemoryConversation";
1655
+ readonly responses: {
1656
+ readonly 200: {
1657
+ readonly description: "Successfully created conversation";
1658
+ readonly contentType: "application/json";
1659
+ };
1660
+ readonly 400: {
1661
+ readonly description: "Invalid request body";
1662
+ readonly contentType: "application/json";
1663
+ };
1664
+ readonly 409: {
1665
+ readonly description: "Conversation already exists";
1666
+ readonly contentType: "application/json";
1667
+ };
1668
+ readonly 500: {
1669
+ readonly description: "Failed to create conversation";
1670
+ readonly contentType: "application/json";
1671
+ };
1672
+ };
1673
+ };
1674
+ readonly updateConversation: {
1675
+ readonly method: "patch";
1676
+ readonly path: "/api/memory/conversations/:conversationId";
1677
+ readonly summary: "Update conversation";
1678
+ readonly description: "Update an existing conversation in memory storage.";
1679
+ readonly tags: readonly ["Memory"];
1680
+ readonly operationId: "updateMemoryConversation";
1681
+ readonly responses: {
1682
+ readonly 200: {
1683
+ readonly description: "Successfully updated conversation";
1684
+ readonly contentType: "application/json";
1685
+ };
1686
+ readonly 400: {
1687
+ readonly description: "Invalid request body";
1688
+ readonly contentType: "application/json";
1689
+ };
1690
+ readonly 404: {
1691
+ readonly description: "Conversation not found";
1692
+ readonly contentType: "application/json";
1693
+ };
1694
+ readonly 500: {
1695
+ readonly description: "Failed to update conversation";
1696
+ readonly contentType: "application/json";
1697
+ };
1698
+ };
1699
+ };
1700
+ readonly deleteConversation: {
1701
+ readonly method: "delete";
1702
+ readonly path: "/api/memory/conversations/:conversationId";
1703
+ readonly summary: "Delete conversation";
1704
+ readonly description: "Delete a conversation and its messages from memory storage.";
1705
+ readonly tags: readonly ["Memory"];
1706
+ readonly operationId: "deleteMemoryConversation";
1707
+ readonly responses: {
1708
+ readonly 200: {
1709
+ readonly description: "Successfully deleted conversation";
1710
+ readonly contentType: "application/json";
1711
+ };
1712
+ readonly 404: {
1713
+ readonly description: "Conversation not found";
1714
+ readonly contentType: "application/json";
1715
+ };
1716
+ readonly 500: {
1717
+ readonly description: "Failed to delete conversation";
1718
+ readonly contentType: "application/json";
1719
+ };
1720
+ };
1721
+ };
1722
+ readonly cloneConversation: {
1723
+ readonly method: "post";
1724
+ readonly path: "/api/memory/conversations/:conversationId/clone";
1725
+ readonly summary: "Clone conversation";
1726
+ readonly description: "Create a copy of a conversation, optionally including messages.";
1727
+ readonly tags: readonly ["Memory"];
1728
+ readonly operationId: "cloneMemoryConversation";
1729
+ readonly responses: {
1730
+ readonly 200: {
1731
+ readonly description: "Successfully cloned conversation";
1732
+ readonly contentType: "application/json";
1733
+ };
1734
+ readonly 404: {
1735
+ readonly description: "Conversation not found";
1736
+ readonly contentType: "application/json";
1737
+ };
1738
+ readonly 409: {
1739
+ readonly description: "Conversation already exists";
1740
+ readonly contentType: "application/json";
1741
+ };
1742
+ readonly 500: {
1743
+ readonly description: "Failed to clone conversation";
1744
+ readonly contentType: "application/json";
1745
+ };
1746
+ };
1747
+ };
1748
+ readonly updateWorkingMemory: {
1749
+ readonly method: "post";
1750
+ readonly path: "/api/memory/conversations/:conversationId/working-memory";
1751
+ readonly summary: "Update working memory";
1752
+ readonly description: "Update working memory content for a conversation.";
1753
+ readonly tags: readonly ["Memory"];
1754
+ readonly operationId: "updateMemoryWorkingMemory";
1755
+ readonly responses: {
1756
+ readonly 200: {
1757
+ readonly description: "Successfully updated working memory";
1758
+ readonly contentType: "application/json";
1759
+ };
1760
+ readonly 400: {
1761
+ readonly description: "Invalid request body";
1762
+ readonly contentType: "application/json";
1763
+ };
1764
+ readonly 404: {
1765
+ readonly description: "Conversation not found";
1766
+ readonly contentType: "application/json";
1767
+ };
1768
+ readonly 500: {
1769
+ readonly description: "Failed to update working memory";
1770
+ readonly contentType: "application/json";
1771
+ };
1772
+ };
1773
+ };
1774
+ readonly deleteMessages: {
1775
+ readonly method: "post";
1776
+ readonly path: "/api/memory/messages/delete";
1777
+ readonly summary: "Delete messages";
1778
+ readonly description: "Delete specific messages from memory storage.";
1779
+ readonly tags: readonly ["Memory"];
1780
+ readonly operationId: "deleteMemoryMessages";
1781
+ readonly responses: {
1782
+ readonly 200: {
1783
+ readonly description: "Successfully deleted messages";
1784
+ readonly contentType: "application/json";
1785
+ };
1786
+ readonly 400: {
1787
+ readonly description: "Invalid request body";
1788
+ readonly contentType: "application/json";
1789
+ };
1790
+ readonly 500: {
1791
+ readonly description: "Failed to delete messages";
1792
+ readonly contentType: "application/json";
1793
+ };
1794
+ };
1795
+ };
1796
+ readonly searchMemory: {
1797
+ readonly method: "get";
1798
+ readonly path: "/api/memory/search";
1799
+ readonly summary: "Search memory";
1800
+ readonly description: "Search memory using semantic search when available.";
1801
+ readonly tags: readonly ["Memory"];
1802
+ readonly operationId: "searchMemory";
1803
+ readonly responses: {
1804
+ readonly 200: {
1805
+ readonly description: "Successfully searched memory";
1806
+ readonly contentType: "application/json";
1807
+ };
1808
+ readonly 400: {
1809
+ readonly description: "Invalid query parameters";
1810
+ readonly contentType: "application/json";
1811
+ };
1812
+ readonly 500: {
1813
+ readonly description: "Failed to search memory";
1814
+ readonly contentType: "application/json";
1815
+ };
1816
+ };
1817
+ };
1253
1818
  readonly checkUpdates: {
1254
1819
  readonly method: "get";
1255
1820
  readonly path: "/updates";
@@ -2327,6 +2892,127 @@ declare function getWorkingMemoryHandler(deps: ServerProviderDeps, params: {
2327
2892
  scope: "conversation" | "user";
2328
2893
  }): Promise<ApiResponse<MemoryWorkingMemoryResult>>;
2329
2894
 
2895
+ declare function handleListMemoryConversations(deps: ServerProviderDeps, query: {
2896
+ agentId?: string;
2897
+ resourceId?: string;
2898
+ userId?: string;
2899
+ limit?: number;
2900
+ offset?: number;
2901
+ orderBy?: "created_at" | "updated_at" | "title";
2902
+ orderDirection?: "ASC" | "DESC";
2903
+ }): Promise<ApiResponse<{
2904
+ conversations: Conversation[];
2905
+ total: number;
2906
+ limit: number;
2907
+ offset: number;
2908
+ }>>;
2909
+ declare function handleGetMemoryConversation(deps: ServerProviderDeps, conversationId: string, query: {
2910
+ agentId?: string;
2911
+ }): Promise<ApiResponse<{
2912
+ conversation: Conversation;
2913
+ }>>;
2914
+ declare function handleListMemoryConversationMessages(deps: ServerProviderDeps, conversationId: string, query: {
2915
+ agentId?: string;
2916
+ limit?: number;
2917
+ before?: Date;
2918
+ after?: Date;
2919
+ roles?: string[];
2920
+ userId?: string;
2921
+ }): Promise<ApiResponse<{
2922
+ conversation: Conversation;
2923
+ messages: UIMessage[];
2924
+ }>>;
2925
+ declare function handleGetMemoryWorkingMemory(deps: ServerProviderDeps, conversationId: string, query: {
2926
+ agentId?: string;
2927
+ scope?: "conversation" | "user";
2928
+ userId?: string;
2929
+ }): Promise<ApiResponse<{
2930
+ content: string | null;
2931
+ format: "markdown" | "json" | null;
2932
+ template: string | null;
2933
+ scope: "conversation" | "user";
2934
+ }>>;
2935
+ type SaveMessageEntry = (UIMessage & {
2936
+ userId?: string;
2937
+ conversationId?: string;
2938
+ }) | {
2939
+ message: UIMessage;
2940
+ userId?: string;
2941
+ conversationId?: string;
2942
+ };
2943
+ declare function handleSaveMemoryMessages(deps: ServerProviderDeps, body: {
2944
+ agentId?: string;
2945
+ userId?: string;
2946
+ conversationId?: string;
2947
+ messages?: SaveMessageEntry[];
2948
+ }): Promise<ApiResponse<{
2949
+ saved: number;
2950
+ }>>;
2951
+ declare function handleCreateMemoryConversation(deps: ServerProviderDeps, body: {
2952
+ agentId?: string;
2953
+ conversationId?: string;
2954
+ resourceId?: string;
2955
+ userId?: string;
2956
+ title?: string;
2957
+ metadata?: Record<string, unknown>;
2958
+ }): Promise<ApiResponse<{
2959
+ conversation: Conversation;
2960
+ }>>;
2961
+ declare function handleUpdateMemoryConversation(deps: ServerProviderDeps, conversationId: string, body: {
2962
+ agentId?: string;
2963
+ resourceId?: string;
2964
+ userId?: string;
2965
+ title?: string;
2966
+ metadata?: Record<string, unknown>;
2967
+ }): Promise<ApiResponse<{
2968
+ conversation: Conversation;
2969
+ }>>;
2970
+ declare function handleDeleteMemoryConversation(deps: ServerProviderDeps, conversationId: string, query: {
2971
+ agentId?: string;
2972
+ }): Promise<ApiResponse<{
2973
+ deleted: boolean;
2974
+ }>>;
2975
+ declare function handleCloneMemoryConversation(deps: ServerProviderDeps, conversationId: string, body: {
2976
+ agentId?: string;
2977
+ newConversationId?: string;
2978
+ resourceId?: string;
2979
+ userId?: string;
2980
+ title?: string;
2981
+ metadata?: Record<string, unknown>;
2982
+ includeMessages?: boolean;
2983
+ }): Promise<ApiResponse<{
2984
+ conversation: Conversation;
2985
+ messageCount: number;
2986
+ }>>;
2987
+ declare function handleUpdateMemoryWorkingMemory(deps: ServerProviderDeps, conversationId: string, body: {
2988
+ agentId?: string;
2989
+ userId?: string;
2990
+ content?: string | Record<string, unknown>;
2991
+ mode?: "replace" | "append";
2992
+ }): Promise<ApiResponse<{
2993
+ updated: boolean;
2994
+ }>>;
2995
+ declare function handleDeleteMemoryMessages(deps: ServerProviderDeps, body: {
2996
+ agentId?: string;
2997
+ conversationId?: string;
2998
+ userId?: string;
2999
+ messageIds?: string[];
3000
+ }): Promise<ApiResponse<{
3001
+ deleted: number;
3002
+ }>>;
3003
+ declare function handleSearchMemory(deps: ServerProviderDeps, query: {
3004
+ agentId?: string;
3005
+ searchQuery?: string;
3006
+ limit?: number;
3007
+ threshold?: number;
3008
+ conversationId?: string;
3009
+ userId?: string;
3010
+ }): Promise<ApiResponse<{
3011
+ results: unknown[];
3012
+ count: number;
3013
+ query: string;
3014
+ }>>;
3015
+
2330
3016
  type A2AJsonRpcId = string | number | null;
2331
3017
  interface JsonRpcError<Data = unknown> {
2332
3018
  code: number;
@@ -2447,4 +3133,4 @@ declare function mapHandlerResponse(response: ApiResponse, type?: string): ApiRe
2447
3133
  */
2448
3134
  declare function getResponseStatus(response: ApiResponse): number;
2449
3135
 
2450
- export { handleChatStream as $, type ApiResponse as A, type JsonRpcStream as B, type JsonRpcHandlerResult as C, type JsonRpcRequest as D, type ErrorResponse as E, type A2ARequestContext as F, type AgentCardSkill as G, type HttpMethod as H, type AgentCardProviderInfo as I, type JsonRpcError as J, type AgentCardCapabilities as K, LOG_ROUTES as L, type MemoryUserSummary as M, type AgentCard as N, OBSERVABILITY_ROUTES as O, A2AErrorCode as P, normalizeError as Q, type ResponseDefinition as R, type SuccessResponse as S, TOOL_ROUTES as T, UPDATE_ROUTES as U, VoltA2AError as V, WORKFLOW_ROUTES as W, isJsonRpcRequest as X, handleGetAgents as Y, handleGenerateText as Z, handleStreamText as _, type A2AServerLikeWithHandlers as a, handleResumeChatStream as a0, handleGenerateObject as a1, handleStreamObject as a2, handleGetAgent as a3, handleGetAgentHistory as a4, handleGetWorkflows as a5, handleGetWorkflow as a6, handleExecuteWorkflow as a7, handleStreamWorkflow as a8, handleSuspendWorkflow as a9, handleCancelWorkflow as aa, handleResumeWorkflow as ab, handleListWorkflowRuns as ac, handleGetWorkflowState as ad, type LogFilterOptions as ae, type LogHandlerResponse as af, handleGetLogs as ag, listMemoryUsersHandler as ah, listMemoryConversationsHandler as ai, getConversationMessagesHandler as aj, getConversationStepsHandler as ak, getWorkingMemoryHandler as al, mapLogResponse as am, mapHandlerResponse as an, getResponseStatus as ao, type OpenApiInfo as ap, type AppSetupConfig as aq, getOrCreateLogger as ar, shouldEnableSwaggerUI as as, getOpenApiDoc as at, DEFAULT_CORS_OPTIONS as au, type StreamResponse as b, isSuccessResponse as c, type MemoryUserAgentSummary as d, type MemoryConversationSummary as e, type MemoryConversationMessagesResult as f, type MemoryConversationStepsResult as g, type MemoryWorkingMemoryResult as h, isErrorResponse as i, type MemoryListUsersQuery as j, type MemoryListConversationsQuery as k, type MemoryGetMessagesQuery as l, type MemoryGetStepsQuery as m, type RouteDefinition as n, AGENT_ROUTES as o, OBSERVABILITY_MEMORY_ROUTES as p, ALL_ROUTES as q, getAllRoutesArray as r, MCP_ROUTES as s, A2A_ROUTES as t, getRoutesByTag as u, parseJsonRpcRequest as v, resolveAgentCard as w, executeA2ARequest as x, type A2AJsonRpcId as y, type JsonRpcResponse as z };
3136
+ export { handleStreamText as $, type ApiResponse as A, type JsonRpcResponse as B, type JsonRpcStream as C, type JsonRpcHandlerResult as D, type ErrorResponse as E, type JsonRpcRequest as F, type A2ARequestContext as G, type HttpMethod as H, type AgentCardSkill as I, type JsonRpcError as J, type AgentCardProviderInfo as K, LOG_ROUTES as L, type MemoryUserSummary as M, type AgentCardCapabilities as N, OBSERVABILITY_ROUTES as O, type AgentCard as P, A2AErrorCode as Q, type ResponseDefinition as R, type SuccessResponse as S, TOOL_ROUTES as T, UPDATE_ROUTES as U, VoltA2AError as V, WORKFLOW_ROUTES as W, normalizeError as X, isJsonRpcRequest as Y, handleGetAgents as Z, handleGenerateText as _, type A2AServerLikeWithHandlers as a, handleChatStream as a0, handleResumeChatStream as a1, handleGenerateObject as a2, handleStreamObject as a3, handleGetAgent as a4, handleGetAgentHistory as a5, handleGetWorkflows as a6, handleGetWorkflow as a7, handleExecuteWorkflow as a8, handleStreamWorkflow as a9, mapHandlerResponse as aA, getResponseStatus as aB, type OpenApiInfo as aC, type AppSetupConfig as aD, getOrCreateLogger as aE, shouldEnableSwaggerUI as aF, getOpenApiDoc as aG, DEFAULT_CORS_OPTIONS as aH, handleSuspendWorkflow as aa, handleCancelWorkflow as ab, handleResumeWorkflow as ac, handleListWorkflowRuns as ad, handleGetWorkflowState as ae, type LogFilterOptions as af, type LogHandlerResponse as ag, handleGetLogs as ah, handleListMemoryConversations as ai, handleGetMemoryConversation as aj, handleListMemoryConversationMessages as ak, handleGetMemoryWorkingMemory as al, handleSaveMemoryMessages as am, handleCreateMemoryConversation as an, handleUpdateMemoryConversation as ao, handleDeleteMemoryConversation as ap, handleCloneMemoryConversation as aq, handleUpdateMemoryWorkingMemory as ar, handleDeleteMemoryMessages as as, handleSearchMemory as at, listMemoryUsersHandler as au, listMemoryConversationsHandler as av, getConversationMessagesHandler as aw, getConversationStepsHandler as ax, getWorkingMemoryHandler as ay, mapLogResponse as az, type StreamResponse as b, isSuccessResponse as c, type MemoryUserAgentSummary as d, type MemoryConversationSummary as e, type MemoryConversationMessagesResult as f, type MemoryConversationStepsResult as g, type MemoryWorkingMemoryResult as h, isErrorResponse as i, type MemoryListUsersQuery as j, type MemoryListConversationsQuery as k, type MemoryGetMessagesQuery as l, type MemoryGetStepsQuery as m, type RouteDefinition as n, AGENT_ROUTES as o, OBSERVABILITY_MEMORY_ROUTES as p, MEMORY_ROUTES as q, ALL_ROUTES as r, getAllRoutesArray as s, MCP_ROUTES as t, A2A_ROUTES as u, getRoutesByTag as v, parseJsonRpcRequest as w, resolveAgentCard as x, executeA2ARequest as y, type A2AJsonRpcId as z };