How to transform MastraMessageV1 or MastraMessageV2 to aisdk format
Do we have any example of such conversion? or how do we use MastraMessage type in frontend?
2 Replies
Hey @vz ! You can use our converter utils: https://mastra.ai/en/docs/frameworks/agentic-uis/ai-sdk#message-format-conversion
Using with Vercel AI SDK
Learn how Mastra leverages the Vercel AI SDK library and how you can leverage it further with Mastra
Thank you!