searchwebextractionresearch

Real-time web search, deep research with cited sources, and webpage content extraction powered by You.com. Search current information with advanced filtering (dates, sites, file types), research topics with configurable effort (lite to exhaustive), and extract full page content in markdown or HTML. Built on You.com's enterprise search API with zero server setup.

Installation

pnpm add @youdotcom-oss/ai-sdk-plugin
# Add to your .env file
YDC_API_KEY=your_api_key_here

Usage

import { generateText, isStepCount } from 'ai';
import { youSearch, youResearch, youContents } from '@youdotcom-oss/ai-sdk-plugin';

const { text } = await generateText({
  model: 'anthropic/claude-sonnet-5.5',
  prompt: 'Research the latest developments in quantum computing',
  tools: {
    search: youSearch(),
    research: youResearch(),
    extract: youContents(),
  },
  stopWhen: isStepCount(5),
});

console.log(text);