import { Agent, Agents } from 'praisonai';
const researcher = new Agent({
name: 'Researcher',
instructions: 'Research topics thoroughly.',
llm: 'openai/gpt-4o'
});
const writer = new Agent({
name: 'Writer',
instructions: 'Write clear summaries.',
llm: 'openai/gpt-4o-mini'
});
const agents = new Agents({
agents: [researcher, writer],
tasks: [
{ agent: researcher, description: 'Research {topic}' },
{ agent: writer, description: 'Summarize the research' }
]
});
const result = await agents.start({ topic: 'AI trends' });