import { streamText } from 'ai';
const mockModel = {
  provider: 'mock',
  specificationVersion: 'v1',
  defaultObjectGenerationMode: 'json',
  doStream: async () => ({ stream: new ReadableStream(), rawCall: { rawPrompt: '', rawSettings: {} } })
};
const result = streamText({ model: mockModel, messages: [] });
console.log(Object.keys(result).filter(k => k.includes('to')));
