import { Agent } from 'praisonai';
import { airweaveSearch } from 'praisonai/tools';
const agent = new Agent({
name: 'KnowledgeAssistant',
instructions: `You help find information across company data sources.
Search Notion for documentation, Slack for discussions,
and Google Drive for files.`,
tools: [
airweaveSearch({
sources: ['notion', 'slack', 'google-drive'],
numResults: 5,
}),
],
});
const result = await agent.run('Find all information about the new product launch');
console.log(result.text);