// Endpoint - stream workflow
const stream = run.streamVNext({ inputData: { messages }, format: 'aisdk' });
return stream.toUIMessageStreamResponse(); // ❌ not a function
Stream inspection shows:
MastraWorkflowStream:
- Has toUIMessageStreamResponse: false ❌
- Has toDataStreamResponse: false ❌
- Methods: constructor, status, result, usage
// Endpoint - stream workflow
const stream = run.streamVNext({ inputData: { messages }, format: 'aisdk' });
return stream.toUIMessageStreamResponse(); // ❌ not a function
Stream inspection shows:
MastraWorkflowStream:
- Has toUIMessageStreamResponse: false ❌
- Has toDataStreamResponse: false ❌
- Methods: constructor, status, result, usage