Skip to main content
Agents can work together as a team to solve complex problems.

Quick Start

1

Create a Team

import { Agent, Team } from 'praisonai';

const researcher = new Agent({
  name: 'Researcher',
  instructions: 'You research topics thoroughly'
});

const writer = new Agent({
  name: 'Writer',
  instructions: 'You write clear, engaging content'
});

const team = new Team({
  agents: [researcher, writer],
  process: 'sequential'
});

await team.start('Write an article about AI');
// Researcher gathers info → Writer creates article
2

With Manager

const team = new Team({
  agents: [researcher, writer],
  process: 'hierarchical',
  manager: new Agent({ instructions: 'You coordinate the team' })
});

User Interaction Flow


Configuration Levels

// Level 1: Array - Simple team
const team = new Team({
  agents: [researcher, writer]
});

// Level 2: String - Named process
const team = new Team({
  agents: [researcher, writer],
  process: 'sequential'  // or 'parallel', 'hierarchical'
});

// Level 3: Dict - Full configuration
const team = new Team({
  agents: [researcher, writer],
  process: 'hierarchical',
  manager: managerAgent,
  maxRounds: 5,
  verbose: true
});

Team Processes

ProcessHow It Works
sequentialAgents work one after another
parallelAgents work at the same time
hierarchicalManager coordinates agents

API Reference

TeamStructure

Team configuration

MultiAgentExecutionConfig

Multi-agent execution options

Best Practices

Specialized agents produce better results than generalists.
When one agent needs another’s output, use sequential process.
A manager helps coordinate when tasks require judgment calls.