Skip to main content
Every PraisonAI agent has the same core structure. Understanding it helps you build better agents.

The 4 Core Components

1. Instructions

What the agent does and how it behaves

2. LLM (Brain)

The AI model that powers thinking

3. Tools

Functions the agent can call

4. Memory

Remembers past conversations

Building an Agent

1

Instructions - Define Purpose

2

LLM - Choose the Brain

3

Tools - Add Capabilities

4

Memory - Remember Context


Complete Example


The Agent Loop

Every agent follows this cycle:

Multi-Agent Architecture

Multiple agents can work together:

Key Takeaways

Begin with just instructions - add tools and memory later
GPT-4o for complex tasks, GPT-4o-mini for simple ones
Any Python function can become a tool
Enable memory for multi-turn conversations

Next: Agent Instructions

Learn how to write effective instructions for your agents.