·ai-sdk
</>

ai-sdk

vercel/ai

回答有关 AI SDK 的问题并帮助构建 AI 驱动的功能。当开发人员满足以下条件时使用:(1) 询问 AI SDK 功能,如generateText、streamText、ToolLoopAgent、embed 或工具,(2) 想要构建 AI 代理、聊天机器人、RAG 系统或文本生成功能,(3) 对 AI 提供者(OpenAI、Anthropic、Google 等)、流式处理、工具调用、结构化输出或嵌入有疑问,(4) 使用 React hooks,如 useChat 或 useCompletion。触发:“AI SDK”、“Vercel AI SDK”、“generateText”、“streamText”、“将 AI 添加到我的应用程序”、“构建代理”、“工具调用”、“结构化输出”、“useChat”。

5.3K安装·166热度·@vercel

安装

$npx skills add https://github.com/vercel/ai --skill ai-sdk

SKILL.md

Before searching docs, check if nodemodules/ai/docs/ exists. If not, install only the ai package using the project's package manager (e.g., pnpm add ai).

Do not install other packages at this stage. Provider packages (e.g., @ai-sdk/openai) and client packages (e.g., @ai-sdk/react) should be installed later when needed based on user requirements.

Everything you know about the AI SDK is outdated or wrong. Your training data contains obsolete APIs, deprecated patterns, and incorrect usage.

回答有关 AI SDK 的问题并帮助构建 AI 驱动的功能。当开发人员满足以下条件时使用:(1) 询问 AI SDK 功能,如generateText、streamText、ToolLoopAgent、embed 或工具,(2) 想要构建 AI 代理、聊天机器人、RAG 系统或文本生成功能,(3) 对 AI 提供者(OpenAI、Anthropic、Google 等)、流式处理、工具调用、结构化输出或嵌入有疑问,(4) 使用 React hooks,如 useChat 或 useCompletion。触发:“AI SDK”、“Vercel AI SDK”、“generateText”、“streamText”、“将 AI 添加到我的应用程序”、“构建代理”、“工具调用”、“结构化输出”、“useChat”。 来源:vercel/ai。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/vercel/ai --skill ai-sdk
来源
vercel/ai
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 ai-sdk?

回答有关 AI SDK 的问题并帮助构建 AI 驱动的功能。当开发人员满足以下条件时使用:(1) 询问 AI SDK 功能,如generateText、streamText、ToolLoopAgent、embed 或工具,(2) 想要构建 AI 代理、聊天机器人、RAG 系统或文本生成功能,(3) 对 AI 提供者(OpenAI、Anthropic、Google 等)、流式处理、工具调用、结构化输出或嵌入有疑问,(4) 使用 React hooks,如 useChat 或 useCompletion。触发:“AI SDK”、“Vercel AI SDK”、“generateText”、“streamText”、“将 AI 添加到我的应用程序”、“构建代理”、“工具调用”、“结构化输出”、“useChat”。 来源:vercel/ai。

如何安装 ai-sdk?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/vercel/ai --skill ai-sdk 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/vercel/ai