Skip to main content
Multiple agents working together can solve complex problems that one agent can’t handle alone.

Quick Start

from praisonaiagents import Agent, AgentTeam

# Create specialized agents
researcher = Agent(instructions="Research topics thoroughly")
writer = Agent(instructions="Write clear summaries")

# Combine into a team
team = AgentTeam(agents=[researcher, writer])
team.start()
Each agent focuses on what it does best. Together, they accomplish more.

Why Multiple Agents?

Specialization

Each agent is an expert at one thing

Complex Tasks

Break big problems into smaller pieces

Better Results

Specialists produce higher quality work

Scalability

Add more agents as needed

Workflow Patterns

Sequential (Pipeline)

Agents work one after another:
from praisonaiagents import Agent, AgentTeam

researcher = Agent(instructions="Research the topic")
analyst = Agent(instructions="Analyze the research")
writer = Agent(instructions="Write the final report")

team = AgentTeam(
    agents=[researcher, analyst, writer],
    process="sequential"  # One after another
)
team.start()

Parallel

Agents work at the same time:
team = AgentTeam(
    agents=[agent1, agent2, agent3],
    process="parallel"  # All at once
)

Hierarchical

A manager delegates to workers:
team = AgentTeam(
    agents=[manager, worker1, worker2],
    process="hierarchical"
)

Complete Example

from praisonaiagents import Agent, AgentTeam

# Research agent with web search
researcher = Agent(
    name="Researcher",
    instructions="Find the latest information on the topic",
    web=True  # Can search the web
)

# Analyst agent
analyst = Agent(
    name="Analyst",
    instructions="Analyze findings and identify key insights"
)

# Writer agent
writer = Agent(
    name="Writer",
    instructions="Create a clear, engaging summary"
)

# Create the team
team = AgentTeam(
    agents=[researcher, analyst, writer],
    process="sequential"
)

# Run the team
result = team.start("Research AI trends in 2025")
print(result)

Agent Communication

Agents share information automatically:
MethodDescription
Output PassingOne agent’s result → next agent’s input
Shared MemoryAll agents access common memory
ContextAgents see what others have done

Best Practices

Don’t overcomplicate. Add more agents only when needed.
Each agent should have one specific job.
Start with sequential, then try parallel if needed.
Make sure each agent works alone before combining.

Next: Agent Process

Learn about different workflow processes.