'use client'; import { motion } from 'framer-motion'; const codeLines = [ "import { weatherTool } from './tools/weather';", "import { searchTool } from './tools/search';", "import { calendarTool } from './tools/calendar';", "import { emailTool } from './tools/email';", '// ... 47 more imports', '', 'const result = await generateText({', " model: openai('gpt-4-turbo'),", ' tools: { weather, search, calendar, email, ... },', '});', ]; export function ProblemSlide(): React.ReactElement { return (

AI SDK Tools Are Static

You import them. You bundle them. They're compiled in.

{/* Code block */}
agent.ts
{codeLines.map((line, i) => ( {line || '\u00A0'} ))}
{['Every tool compiled in', 'Bundle grows forever', 'No runtime discovery'].map( (text) => ( {text} ) )}
); }