CtrlK
BlogDocsLog inGet started
Tessl Logo

develop-ai-functions-example

Develop examples for AI SDK functions. Use when creating, running, or modifying examples under examples/ai-functions/src to validate provider support, demonstrate features, or create test fixtures.

78

0.57x
Quality

87%

Does it follow best practices?

Impact

52%

0.57x

Average score across 2 eval scenarios

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Evaluation results

15%

-75%

Add a Structured Output Example for OpenAI

Structured output example using generateObject with OpenAI

Criteria
Without this skill
With this skill

Correct file path

0%

0%

No flat provider file

100%

100%

generateObject import

100%

0%

Provider import

100%

0%

Zod schema definition

100%

0%

result.object logged

100%

0%

result.usage logged

100%

0%

print utility used

100%

0%

No JSON.stringify for object output

100%

100%

run() wrapper

100%

0%

Realistic model ID

100%

0%

90%

Add Mistral Provider Examples to the AI SDK

AI SDK provider example files

Criteria
Without this skill
With this skill

Subdirectory structure - generateText

100%

100%

Subdirectory structure - streamText

100%

100%

No flat provider files

100%

100%

run() wrapper used

100%

100%

run() import path

100%

100%

Provider package import

100%

100%

AI SDK function import

100%

100%

generateText logs result.text

100%

100%

generateText logs result.usage

100%

100%

generateText logs result.finishReason

100%

100%

printFullStream for streaming

0%

0%

Realistic model IDs

100%

100%

Descriptive prompts

100%

100%

Repository
vercel/ai
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.