'use client'; import { motion } from 'framer-motion'; const codeLines = [ "import { searchTpmjsToolsTool } from '@tpmjs/search-registry';", "import { registryExecuteTool } from '@tpmjs/registry-execute';", '', 'const result = await generateText({', " model: openai('gpt-4-turbo'),", ' tools: { search: searchTpmjsToolsTool, execute: registryExecuteTool },', " prompt: 'Format this markdown table for me...',", '});', ]; export function SolutionSlide(): React.ReactElement { return (
Two imports. Infinite tools at runtime.
{/* Code block */}