import { Agent, Agents } from 'praisonai';
const researcher = new Agent({
name: "Researcher",
instructions: "You are a thorough researcher. Find key facts and data."
});
const analyst = new Agent({
name: "Analyst",
instructions: "You analyze research findings and identify patterns."
});
const writer = new Agent({
name: "Writer",
instructions: "You write clear, engaging content based on analysis."
});
const pipeline = new Agents([researcher, analyst, writer]);
const results = await pipeline.start();
console.log("Research:", results[0]);
console.log("Analysis:", results[1]);
console.log("Article:", results[2]);