Loading video player...
Learn how to instrument AI agents built with Vercel's AI SDK to get complete observability, prompt management, and evaluation capabilities. This tutorial walks through integrating Freeplay with the Vercel AI SDK to track conversations, debug tool calls, and safely iterate on prompts in production. What You'll Learn: š¹ Add OpenTelemetry instrumentation to Vercel AI SDK in a few lines of code š¹ Track streaming conversations and agent runs automatically, including prompts and tool calls š¹ Debug tool/function calls with detailed trace visualization š¹ Import prompts to Freeplay for easier experiment and deployment of changes in production AI apps š¹ Build evaluation datasets from production data š¹ Deploy prompt changes without code deployments Timestamps: 0:00 - Introduction & Setup 0:48 - Adding OpenTelemetry to Next.js 1:51 - Instrumenting AI SDK stream text 2:36 - Viewing traces in Freeplay 3:38 - Debugging tool calls and function execution 3:58 - Upgrading to prompt management 5:52 - Converting traces to reusable templates 7:30 - Deploying prompts to production 8:12 - Testing with dynamic variables 9:08 - Benefits of prompt management approach Tech Stack: * Vercel AI SDK * Next.js * OpenTelemetry * Freeplay (LLM observability, evals & prompt management) Links: * Freeplay Documentation: https://docs.freeplay.ai * GitHub Example: https://github.com/228Labs/freeplay-t... * Vercel AI SDK: https://sdk.vercel.ai #VercelAI #AISDK #LLMObservability #OpenTelemetry #AIEngineering #PromptEngineering #NextJS