To authenticate, you’ll need a Tako API key. It’s best practice to store it as an environment variable to avoid hardcoding sensitive credentials in your code.
import { createTakoClient } from 'tako-sdk';// Initialize the clientconst tako = createTakoClient(process.env.TAKO_API_KEY!);// Search Tako Knowledgeconst results = await tako.knowledgeSearch('AMD vs. Nvidia headcount since 2015');console.log(results.outputs.knowledge_cards);