Patch Changes
-
#974
a5bc28dThanks @omeraplak! - feat: add memory HTTP endpoints for conversations, messages, working memory, and search across server-core, Hono, Elysia, and serverless runtimes.Endpoints
GET /api/memory/conversationsPOST /api/memory/conversationsGET /api/memory/conversations/:conversationIdPATCH /api/memory/conversations/:conversationIdDELETE /api/memory/conversations/:conversationIdPOST /api/memory/conversations/:conversationId/cloneGET /api/memory/conversations/:conversationId/messagesGET /api/memory/conversations/:conversationId/working-memoryPOST /api/memory/conversations/:conversationId/working-memoryPOST /api/memory/save-messagesPOST /api/memory/messages/deleteGET /api/memory/search
Note: include
agentId(query/body) when multiple agents are registered or no global memory is configured.Examples
Create a conversation:
curl -X POST http://localhost:3141/api/memory/conversations \ -H "Content-Type: application/json" \ -d '{ "userId": "user-123", "resourceId": "assistant", "title": "Support Chat", "metadata": { "channel": "web" } }'
Save messages into the conversation:
curl -X POST http://localhost:3141/api/memory/save-messages \ -H "Content-Type: application/json" \ -d '{ "userId": "user-123", "conversationId": "conv-001", "messages": [ { "role": "user", "content": "Hi there" }, { "role": "assistant", "content": "Hello!" } ] }'
Update working memory (append mode):
curl -X POST http://localhost:3141/api/memory/conversations/conv-001/working-memory \ -H "Content-Type: application/json" \ -d '{ "content": "Customer prefers email follow-ups.", "mode": "append" }'
Search memory (requires embedding + vector adapters):
curl "http://localhost:3141/api/memory/search?searchQuery=refund%20policy&limit=5" -
Updated dependencies [
9221498,a5bc28d]:- @voltagent/core@2.1.6
- @voltagent/server-core@2.1.3