Using data streams in Vercel AI SDK v6 agents for real-time title updates

Hi!

I was wondering how I can adapt data-stream from v5 AI SDK into the v6. One of my use case is updating the chat’s title while the AI was streaming text. Can this be done in v6?

Anyone from Vercel can help?