import { Agent, Agents } from 'praisonai';
const researcher = new Agent({
name: 'Researcher',
instructions: 'Research topics thoroughly.',
llm: 'anthropic/claude-sonnet-4-20250514'
});
const writer = new Agent({
name: 'Writer',
instructions: 'Write clear summaries.',
llm: 'anthropic/claude-3-haiku-20240307'
});
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: 'quantum computing' });