# Add Function Examples

> Guide for adding new AI function examples, for testing specific features against the actual provi…

Guide for adding new AI function examples, for testing specific features against the actual provider APIs.

- Page: https://ss33.ai/skills/vercel/add-function-examples-41866030553
- Publisher: vercel
- Category: [Software Development](https://ss33.ai/skills/category/software-development-t44z8z) › [Testing & QA](https://ss33.ai/skills/category/software-development-t44z8z/testing-and-qa-g56s6z)
- License: Apache-2.0
- Source: https://github.com/vercel/ai/blob/d08bb664284fefe1201076626781dfe4e416a9b9/skills/add-function-examples/SKILL.md

## Skill

SKILL.md: https://ss33.ai/api/v1/ss33/download/vercel/add-function-examples-41866030553

## 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.
