ydc-ai-sdk-integration
Integrate Vercel AI SDK applications with You.com tools (web search, AI agent, content extraction). Use when developer mentions AI SDK, Vercel AI SDK, generateText, streamText, or You.com integration with AI SDK.
Why use this skill?
Automate the integration of You.com search and agent tools into your Vercel AI SDK projects with this OpenClaw interactive assistant skill.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/edwardirby/ydc-ai-sdk-integrationWhat This Skill Does
The ydc-ai-sdk-integration skill is a specialized OpenClaw tool designed to streamline the incorporation of You.com AI capabilities into applications built with the Vercel AI SDK. By automating the boilerplate setup and tool configuration, this skill allows developers to seamlessly add advanced functionalities like real-time web search (youSearch), intelligent AI agent workflows (youExpress), and precise content extraction (youContents) to their existing or new AI projects. It acts as an interactive assistant that walks you through package installation, environment variable management, and the specific syntax requirements for generateText and streamText patterns, ensuring your integration is both idiomatic and functional.
Installation
To begin, ensure you have the OpenClaw agent running. Install the skill by running the following command in your terminal:
clawhub install openclaw/skills/skills/edwardirby/ydc-ai-sdk-integration
Once installed, invoke the skill simply by mentioning your desire to integrate You.com tools into your Vercel AI SDK codebase. The skill will prompt you for your preferred package manager (npm, yarn, pnpm, or bun), API key source, and specific project architecture.
Use Cases
- Research Agents: Augment your LLM responses with live, up-to-date web search results retrieved via
youSearch. - Content Aggregation: Use
youContentsto parse complex URLs or long-form documentation into structured data for your AI application. - Complex Reasoning Chains: Deploy
youExpressto enable the AI to handle multi-step tasks requiring external tool execution. - Modernizing Legacy AI Apps: Retrofit existing Vercel AI SDK implementations with superior searching capabilities without rewriting core logic.
Example Prompts
- "I'm building a chatbot using the Vercel AI SDK. Can you help me integrate the You.com search tool into my streamText function?"
- "I need to add youExpress and youContents to my existing Next.js project. Can you guide me through the setup using pnpm?"
- "How do I configure my environment variables to use a custom key name for the you-ai-sdk-plugin in my TypeScript project?"
Tips & Limitations
- Model Compatibility: When using
streamTextwith specific providers like Anthropic, remember to incorporate thestopWhenparameter for better cost efficiency and response control. - API Keys: Ensure your
YDC_API_KEYis kept secure in environment files. Do not hardcode these keys directly into your application components. - Scope: This skill is specifically optimized for
@youdotcom-oss/ai-sdk-plugin. If you are using a different AI provider framework, manual adjustments to the imported tools may be required. Always review the generated code snippets before deploying to production environments.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-edwardirby-ydc-ai-sdk-integration": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api, code-execution, file-write
Related Skills
youdotcom-cli
Web search, research with citations, and content extraction for bash agents using curl and You.com's REST API. - MANDATORY TRIGGERS: You.com, youdotcom, YDC, web search CLI, livecrawl, you.com API, research with citations, content extraction, fetch web page - Use when: web search needed, content extraction, URL crawling, real-time web data, research with citations
ydc-claude-agent-sdk-integration
Integrate Claude Agent SDK with You.com HTTP MCP server for Python and TypeScript. Use when developer mentions Claude Agent SDK, Anthropic Agent SDK, or integrating Claude with MCP tools.
teams-anthropic-integration
Use @youdotcom-oss/teams-anthropic to add Anthropic Claude models (Opus, Sonnet, Haiku) to Microsoft Teams.ai applications. Optionally integrate You.com MCP server for web search and content extraction.
ydc-openai-agent-sdk-integration
Integrate OpenAI Agents SDK with You.com MCP server - Hosted and Streamable HTTP support for Python and TypeScript. Use when developer mentions OpenAI Agents SDK, OpenAI agents, or integrating OpenAI with MCP.
youdotcom-cli
Web search, research with citations, and content extraction for bash agents using curl and You.com's REST API. - MANDATORY TRIGGERS: You.com, youdotcom, YDC, web search CLI, livecrawl, you.com API, research with citations, content extraction, fetch web page - Use when: web search needed, content extraction, URL crawling, real-time web data, research with citations