Search Tako's knowledge base for data visualizations, insights, and well-sourced information with charts and analytics.
pnpm install @takoviz/ai-sdk# Add to your .env fileTAKO_API_KEY=your_api_key_hereimport { takoSearch } from '@takoviz/ai-sdk';import { generateText, stepCountIs } from 'ai';
const { text } = await generateText({ model: 'openai/gpt-5.2', prompt: 'What is the stock price of Nvidia?', tools: { takoSearch: takoSearch(), }, stopWhen: stepCountIs(5),});
console.log(text);