Types of AI Agents

Understanding the different categories of AI agents

Different agents for different tasks. Let’s explore the types you can build with PraisonAI.

Diagram

Agent Types

🔄 Simple
React to input

🎯 Goal-Based
Achieve objectives

🧠 Learning
Improve over time


1. Simple Agents

React directly to what you ask – no memory, just immediate response.

python
from praisonaiagents import Agent

# Simple Q&A agent
agent = Agent(instructions="Answer questions directly and concisely")
agent.start("What is the capital of France?")

2. Goal-Based Agents

Work toward specific objectives, planning steps to achieve them.

python
from praisonaiagents import Agent

# Goal-oriented research agent
agent = Agent(
    instructions="Research and summarize topics thoroughly",
    planning=True  # Enable planning for complex goals
)
agent.start("Research the benefits of solar energy")
Diagram

Goal-Based Agent

No

Yes

🎯 Goal

📋 Plan Steps

âš¡ Execute

Done?

✅ Complete


3. Learning Agents

Improve over time by remembering past interactions.

python
from praisonaiagents import Agent

# Agent with memory that learns preferences
agent = Agent(
    instructions="Remember user preferences and improve responses",
    memory=True  # Enable memory
)
agent.start("I prefer short, bullet-point answers")

4. Tool-Using Agents

Extend capabilities with external tools.

python
from praisonaiagents import Agent

def search_web(query: str) -> str:
    """Search the web for information"""
    return f"Results for: {query}"

# Agent with tools
agent = Agent(
    instructions="Search and analyze information",
    tools=[search_web]
)
agent.start("Find the latest news about AI")
Diagram

Tool-Using Agent

Yes

No

🤖 Agent

Need Tool?

🔧 Use Tool

📊 Process Result

💬 Respond


5. Multi-Agent Teams

Multiple agents working together on complex tasks.

python
from praisonaiagents import Agent, AgentTeam

researcher = Agent(instructions="Research topics thoroughly")
writer = Agent(instructions="Write clear summaries")

team = AgentTeam(agents=[researcher, writer])
team.start()
Diagram

Multi-Agent Team

📋 Task

🤖 Agent 1

🤖 Agent 2

✅ Result


Which Type Should You Use?

NeedAgent TypePraisonAI Feature
Quick answersSimpleDefault agent
Complex tasksGoal-Basedplanning=True
PersonalizationLearningmemory=True
External dataTool-Usingtools=[...]
Big projectsMulti-AgentAgentTeam([...])

Next: Agent Architecture

Learn how agents are structured internally.