import { generateText, isStepCount } from 'ai';
import { olostepTools } from '@olostep/ai-sdk';
const { text } = await generateText({
model: 'openai/gpt-5-mini',
prompt: 'Read the Next.js 15 release notes and list the breaking changes, with sources.',
tools: olostepTools(),
stopWhen: isStepCount(5),
});
console.log(text);