Overview
The Python implementation of elizaOS provides a fully compatible runtime for building AI agents in Python. It features strong typing with Pydantic, async/await support, and maintains 100% compatibility with the TypeScript version through Protocol Buffers. Package:elizaos
Version: 2.0.0a4
Python Version: 3.11+
Key Features
- Strong typing with Pydantic models and type hints
- Full async/await support with asyncio
- Protocol Buffers for cross-language compatibility
- Plugin architecture matching TypeScript implementation
- Character configuration and memory system
- Event-driven programming model
Installation
- pip
- uv
- Development
Required Plugins
You’ll need an LLM provider and database adapter:Quick Start
Basic Agent Setup
Interactive Chat
Core Concepts
Actions
Define custom actions for your agent:Providers
Supply contextual information:Evaluators
Analyze conversations:Creating Plugins
Bundle components into reusable plugins:Configuration
Environment Variables
Loading from .env
Runtime Settings
Type System
Python elizaOS uses Pydantic for strong typing:Advanced Features
Async Operations
All runtime operations are async:Memory Search
Event Handling
Testing
Unit Tests
Async Fixtures
Available Plugins
LLM Providers
| Plugin | Package | Description |
|---|---|---|
| OpenAI | elizaos-plugin-openai | GPT-4, embeddings |
| Anthropic | elizaos-plugin-anthropic | Claude models |
| Ollama | elizaos-plugin-ollama | Local LLMs |
| Groq | elizaos-plugin-groq | Fast inference |
Database Adapters
| Plugin | Package | Description |
|---|---|---|
| InMemoryDB | elizaos-plugin-inmemorydb | Development/testing |
| SQL | elizaos-plugin-sql | PostgreSQL |
Platform Integrations
| Plugin | Package | Description |
|---|---|---|
| Telegram | elizaos-plugin-telegram | Telegram bots |
| Discord | elizaos-plugin-discord | Discord bots |
Development
Setting Up Development Environment
Cross-Language Compatibility
The Python implementation maintains full compatibility with TypeScript:- Python
- TypeScript
Examples
Complete examples available in the repository:Resources
Next Steps
TypeScript SDK
Explore the TypeScript implementation
Rust SDK
Check out the Rust implementation
Creating Plugins
Build your own plugins
Examples
View complete examples