searchwebdatavisualizationanalytics

Tako gives AI agents real-time, well-sourced data and charts across finance, economics, sports, demographics, and more. Search Tako's curated knowledge graph and the live web, get citation-backed answers, and fetch the data behind any result.

Installation

pnpm install @takoviz/ai-sdk
# Add to your .env file
TAKO_API_KEY=your_api_key_here

Usage

import { generateText, isStepCount } from 'ai';
import { takoSearch, takoAnswer, takoContents } from '@takoviz/ai-sdk';

const { text } = await generateText({
  model: 'openai/gpt-6-astra',
  prompt: 'How have Nvidia and AMD employee counts compared since 2013?',
  tools: {
    takoSearch: takoSearch(),
    takoAnswer: takoAnswer(),
    takoContents: takoContents(),
  },
  stopWhen: isStepCount(5),
});

console.log(text);