Quick Start
Prerequisites
Basic Agent
Agent with Custom Role
Agent with Tools
Agent with Memory
Agent Configuration Options
| Parameter | Type | Description |
|---|---|---|
name | str | Agent name |
role | str | Agent’s role description |
goal | str | What the agent aims to achieve |
backstory | str | Background context for the agent |
instructions | str | System instructions |
model | str | LLM model to use (default: gpt-4o-mini) |
tools | list | List of tools available to the agent |
memory | Memory | Memory instance for persistence |
verbose | bool | Enable verbose logging |
Using Different Models
Chat Mode
Best Practices
Write specific instructions
Write specific instructions
Clear, specific instructions lead to more consistent and useful agent behavior.
Add tools for external capabilities
Add tools for external capabilities
Use tools to extend what your agent can do - search, code execution, file operations, and more.
Enable memory for context
Enable memory for context
Add
memory=True for agents that need to remember information across multiple turns.Use gpt-4o-mini for cost efficiency
Use gpt-4o-mini for cost efficiency
Start with
llm='gpt-4o-mini' for testing - switch to gpt-4o when you need more capability.Next Steps
- Multi-Agent Systems - Build systems with multiple agents
- Adding Tools - Extend agent capabilities
- Agent Module Reference - Full API reference
Related
Multi-Agent Systems
Orchestrate multiple agents working together
Tools
Extend your agent with tools

