add-function-examples
새로운 AI 함수 예제를 추가하기 위한 가이드로, 실제 제공자 API에 대해 특정 기능을 테스트하기 위한 것입니다.
npx skills add https://github.com/vercel/ai --skill add-function-examplesAdding 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.