searchscrapingcrawlextraction

Web search, scraping, crawling and cited answers for AI SDK agents. Returns structured data and page content for model use.

Installation

pnpm add @olostep/ai-sdk
# Add to your .env file
OLOSTEP_API_KEY=your_api_key_here

Usage

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);