搜索

PythonReactSEOPDF
OpenClaw

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.

edwardirby0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install edwardirby/ydc-ai-sdk-integration

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Integrate AI SDK with You.com Tools

Interactive workflow to add You.com tools to your Vercel AI SDK application using @youdotcom-oss/ai-sdk-plugin.

Workflow

  1. Ask: Package Manager

    • Which package manager? (npm, bun, yarn, pnpm)
    • Install package using their choice:
      npm install @youdotcom-oss/ai-sdk-plugin
      # or bun add @youdotcom-oss/ai-sdk-plugin
      # or yarn add @youdotcom-oss/ai-sdk-plugin
      # or pnpm add @youdotcom-oss/ai-sdk-plugin
      
  2. Ask: Environment Variable Name

    • Using standard YDC_API_KEY?
    • Or custom name? (if custom, get the name)
    • Have they set it in their environment?
    • If NO: Guide them to get key from https://you.com/platform/api-keys
  3. Ask: Which AI SDK Functions?

    • Do they use generateText()?
    • Do they use streamText()?
    • Both?
  4. Ask: Existing Files or New Files?

    • EXISTING: Ask which file(s) to edit
    • NEW: Ask where to create file(s) and what to name them
  5. For Each File, Ask:

    • Which tools to add?
      • youSearch (web search)
      • youExpress (AI agent)
      • youContents (content extraction)
      • Multiple? (which combination?)
    • Using generateText() or streamText() in this file?
    • Which AI provider model? (to determine if stopWhen needed)
  6. Reference Integration Examples

    See "Integration Examples" section below for complete code patterns:

    • generateText() - Basic text generation with tools
    • streamText() - Streaming responses with web frameworks (Next.js, Express, React)
  7. Update/Create Files

    For each file:

    • Reference integration examples (generateText or streamText based on their answer)
    • Add import for selected tools
    • If EXISTING file: Find their generateText/streamText call and add tools object
    • If NEW file: Create file with example structure
    • Tool invocation pattern based on env var name:
      • Standard YDC_API_KEY: youSearch()
      • Custom name: `youSearc...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/edwardirby/ydc-ai-sdk-integration
Version
—
Commit
1a0ae4bf5631708d6cd272819443c39dcaec0792
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# Integrate AI SDK with You.com Tools

Interactive workflow to add You.com tools to your Vercel AI SDK application using `@youdotcom-oss/ai-sdk-plugin`.

## Workflow

1. **Ask: Package Manager**
   * Which package manager? (npm, bun, yarn, pnpm)
   * Install package using their choice:
     ```bash
     npm install @youdotcom-oss/ai-sdk-plugin
     # or bun add @youdotcom-oss/ai-sdk-plugin
     # or yarn add @youdotcom-oss/ai-sdk-plugin
     # or pnpm add @youdotcom-oss/ai-sdk-plugin
     ```

2. **Ask: Environment Variable Name**
   * Using standard `YDC_API_KEY`?
   * Or custom name? (if custom, get the name)
   * Have they set it in their environment?
   * If NO: Guide them to get key from https://you.com/platform/api-keys

3. **Ask: Which AI SDK Functions?**
   * Do they use `generateText()`?
   * Do they use `streamText()`?
   * Both?

4. **Ask: Existing Files or New Files?**
   * EXISTING: Ask which file(s) to edit
   * NEW: Ask where to create file(s) and what to name them

5. **For Each File, Ask:**
   * Which tools to add?
     - `youSearch` (web search)
     - `youExpress` (AI agent)
     - `youContents` (content extraction)
     - Multiple? (which combination?)
   * Using `generateText()` or `streamText()` in this file?
   * Which AI provider model? (to determine if stopWhen needed)

6. **Reference Integration Examples**

   See "Integration Examples" section below for complete code patterns:
   * generateText() - Basic text generation with tools
   * streamText() - Streaming responses with web frameworks (Next.js, Express, React)

7. **Update/Create Files**

   For each file:
   * Reference integration examples (generateText or streamText based on their answer)
   * Add import for selected tools
   * If EXISTING file: Find their generateText/streamText call and add tools object
   * If NEW file: Create file with example structure
   * Tool invocation pattern based on env var name:
     - Standard `YDC_API_KEY`: `youSearch()`
     - Custom name: `youSearc...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.