# Add Function Examples > Guide for adding new AI function examples, for testing specific features against the actual provider APIs. Source: https://skillsagentes.com/skills/vercel/ai/add-function-examples Repository: https://github.com/vercel/ai Author: vercel License: NOASSERTION Updated: hace 4 meses Context cost: 27 tok installed, 234 tok once triggered, 234 tok with every bundled file Bundle: 1 file, 935 B Permissions requested: none declared ## Install ```bash npx -y skills add vercel/ai --skill add-function-examples --agent claude-code ``` ## What it does - Guía al agente para añadir ejemplos de funciones de IA en el directorio examples/ai-functions - Indica crear variantes para generateText y streamText en modelos de lenguaje, u otra función top-level según el tipo de modelo - Instruye ejecutar pnpm type-check:full tras crear el ejemplo y corregir los errores ## Use it when - Al identificar features nuevas, modificadas o bug fixes en la rama actual que se beneficiarían de un ejemplo - Al necesitar probar una característica específica contra las APIs reales de los proveedores ## What triggers it - "Añade un ejemplo para esta nueva función de generateText" - "Necesito un ejemplo en ai-functions para probar generateSpeech con el proveedor real" ## Before you install - Requiere tener pnpm configurado para ejecutar pnpm type-check:full. ## Files - SKILL.md — 935 B ## SKILL.md Reproduced verbatim from vercel/ai under NOASSERTION. This section is the upstream document and is in English. ## Adding Function Examples Review the changes in the current branch, and identify new or modified features or bug fixes that would benefit from having an example in the `examples/ai-functions` directory. These examples are used for testing specific features against the actual provider APIs, and can also serve as documentation for users. Determine for which kind of model and top-level function the example should be added. For a language model, the example should be added in two variants, one for `generateText` and one for `streamText`. For any other models kinds, add the example for the relevant top-level function (e.g. `generateImage`, `generateSpeech`). After creating the example, run `pnpm type-check:full`; fix any errors encountered. --- Skills Agentes — https://skillsagentes.com/skills/vercel/ai/add-function-examples