Develop examples for AI SDK functions. Use when creating, running, or modifying examples under examples/ai-functions/src to validate provider support,…
Development and validation scripts for AI SDK functions across multiple providers and capabilities. Organized by AI SDK function category (text generation, streaming, structured output, embeddings, image generation, speech, transcription, reranking, and agents) File naming convention maps provider and feature combinations (e.g., openai-tool-call.ts, amazon-bedrock-anthropic-cache-control.ts) for quick identification Includes shared utility helpers for error handling, environment loading, streaming output formatting, and test fixture generation Templates provided for common patterns: basic generation, streaming, tool calling, and structured output with Zod schemas AI Functions Examples The examples/ai-functions/ directory contains scripts for validating, testing, and iterating on AI SDK functions across providers. Example Categories Examples are organized by AI SDK function in examples/ai-functions/src/:
don't have the plugin yet? install it then click "run inline in claude" again.