ydc-ai-sdk-integration

Integrate youSearch and youContents tools into Vercel AI SDK applications.

59|10|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/youdotcom-oss/agent-skills --skill ydc-ai-sdk-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ydc-ai-sdk-integration
Source: https://github.com/youdotcom-oss/agent-skills/tree/main/skills/ydc-ai-sdk-integration
Command: npx skills add https://github.com/youdotcom-oss/agent-skills --skill ydc-ai-sdk-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the integration of You.com's powerful web search and content extraction capabilities directly into Vercel AI SDK applications, enabling AI agents to access real-time web data.

Core Features & Use Cases

  • Web Search Integration: Add youSearch tool for real-time web queries.
  • Content Extraction: Integrate youContents tool to extract data from web pages.
  • Use Case: Developers building AI applications with generateText() or streamText() can easily add web search functionality to answer user queries with up-to-date information.

Quick Start

Install the You.com AI SDK plugin using npm install @youdotcom-oss/ai-sdk-plugin.

Frequently Asked Questions about ydc-ai-sdk-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate You.com web search into a Vercel AI SDK application?

You can integrate You.com web search into a Vercel AI SDK application by installing the You.com plugin to add the `youSearch` tool directly into `generateText()` or `streamText()` functions. This enables AI agents to query real-time web data.

Can I extract web page content using the Vercel AI SDK?

Yes, you can extract web page content using the Vercel AI SDK by integrating the `youContents` tool provided by the You.com plugin. This allows your AI application to extract data from specified web pages during text generation.

Does the You.com AI SDK plugin support custom API key environment variables?

Yes, the You.com AI SDK plugin supports custom environment variable configurations for API keys. This allows developers to define standard or custom environment variables to securely authenticate You.com API requests within their application setup.

What is the best way to add real-time data to an AI agent's generateText function?

The best way to add real-time data to an AI agent's `generateText` function is by integrating the You.com `youSearch` tool. This plugin connects your Vercel AI SDK application to You.com's web search capabilities, providing up-to-date information for user queries.

Do I need to install a separate package to use You.com tools with streamText?

Yes, you need to install the `@youdotcom-oss/ai-sdk-plugin` package via npm to use You.com tools with `streamText`. This plugin provides the necessary `youSearch` and `youContents` tools to facilitate real-time web search and content extraction.