
Develop Ai Functions Example
vercel/aiOfficial
Guide for writing AI SDK function examples in examples/ai-functions/src, organized by function and provider.
- skills.sh installs
- 1.9K
- GitHub stars
- 28.1K
- last updated
- Aug 21, 2026
What it does
- Covers the example directory layout by AI SDK function, from
generate-text/throughtelemetry/, plus sharedlib/andtools/folders - Specifies the
<function>/<provider>/basic.tsnaming pattern and bans flat provider files such asgenerate-text/openai.ts - Enforces that reproduction-only scripts appear only in PR descriptions and are never committed to the repository
- Designed for contributors adding providers, features, provider options, or test fixtures to the AI SDK examples
Install
$ npx -y skills add vercel/ai --skill develop-ai-functions-example -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
AI Functions Examples
The examples/ai-functions/ directory contains reusable scripts for validating, testing, and iterating on AI SDK functions across providers. Place examples under examples/ai-functions/src/<function>/<provider>/. Reproduction-only scripts belong only in the PR description's End-to-End Verification section and must never be committed; see Bug Reproductions.
Example Categories
Examples are organized by AI SDK function in examples/ai-functions/src/:
Details
- Repository
- github.com/vercel/ai
- Categories
- AI Agents & LLM Apps, Technical Documentation
More from vercel/ai
All 8Similar to Develop Ai Functions Example
More AI Agents & LLM Apps
ai-sdkSkillvercel/ai70.5K installsOfficial toolkit for building AI features with generateText, streamText, agents, tools, and embeddings across model providers.
add-provider-packageSkillvercel/ai1.4K installsGuide for building first-party AI SDK provider packages that integrate external AI services with current interfaces.
create-agentsmdSkillgithub/awesome-copilot13.3K installsGuided prompt for generating a repository-root AGENTS.md that gives coding agents setup, testing, style, and PR context.
prompt-imagesSkillreplicate/skills3K installsPrompting guide for AI image generation and editing models hosted on Replicate.
azure-sdk-typescriptPluginmicrosoft/skills3.2K starsAzure SDK patterns and best practices for TypeScript/Node.js developers covering AI, storage, identity, monitoring, and messaging libraries.