'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 (

What If Tools Were Dynamic?

Two imports. Infinite tools at runtime.

{/* Code block */}
agent.ts
{codeLines.map((line, i) => ( {line || '\u00A0'} ))}
{['Discover at runtime', 'Execute in sandbox', 'No bundling'].map((text) => ( {text} ))}
); }