@voltagent/core@2.6.14
·
7 commits
to main
since this release
Patch Changes
-
#1183
b48f107Thanks @omeraplak! - feat: persist selected assistant message metadata to memoryYou can enable persisted assistant message metadata at the agent level or per request.
const result = await agent.streamText("Hello", { memory: { userId: "user-1", conversationId: "conv-1", options: { messageMetadataPersistence: { usage: true, finishReason: true, }, }, }, });
With this enabled, fetching messages from memory returns assistant
UIMessage.metadata
with fields likeusageandfinishReason, not just stream-time metadata.REST API requests can enable the same behavior with
options.memory.options:curl -X POST http://localhost:3141/agents/assistant/text \ -H "Content-Type: application/json" \ -d '{ "input": "Hello", "options": { "memory": { "userId": "user-1", "conversationId": "conv-1", "options": { "messageMetadataPersistence": { "usage": true, "finishReason": true } } } } }'
-
#1167
195155bThanks @octo-patch! - fix: use OpenAI-compatible adapter for MiniMax provider