import { Agent, Agents, db } from 'praisonai';
// Shared database for all Agents
const sharedDb = db('sqlite:./team.db');
const researcher = new Agent({
name: 'Researcher',
instructions: 'Research topics thoroughly.',
db: sharedDb,
sessionId: 'project-alpha'
});
const writer = new Agent({
name: 'Writer',
instructions: 'Write based on research.',
db: sharedDb,
sessionId: 'project-alpha'
});
// Both Agents share conversation history
const agents = new AgentTeam([researcher, writer]);
await agents.start();