Skip to main content
Agents are the primary execution unit in PraisonAI. They combine LLM providers, tools, and memory for autonomous task execution.

Quick Start

1

Create a Simple Agent

2

One-Liner Agent

3

Agent with Tools


User Interaction Flow


Agent Struct

Runtime Methods

Accessor Methods


AgentBuilder

Fluent API for constructing agents.

Builder Methods


Configuration Options

AgentConfig


Common Patterns

Research Agent with Multiple Tools

Conversational Agent with Memory


Best Practices

Clear instructions lead to better outputs. Include role, capabilities, and constraints.
Higher values for complex tool chains, lower for simple tasks.
Keep stream(true) for better user experience with long outputs.
All async methods return Result - use ? operator or match.

Tools

Tool system

Memory

Memory management