Deep Dive
Architecture Overview
Deep dive into elizaOS architecture
System Architecture
elizaOS follows a modular, plugin-based architecture:
Core Components
AgentRuntime
The central orchestrator that:
- Manages agent lifecycle
- Processes messages
- Coordinates plugins
- Handles state composition
- Manages services
Plugin System
Plugins extend functionality through:
- Actions - Discrete tasks
- Providers - Context data
- Evaluators - Response processing
- Services - Background processes
- Routes - HTTP endpoints
- Events - Event handlers
Memory System
Hierarchical memory storage:
- Messages - Conversation history
- Facts - Extracted information
- Documents - Knowledge base
- Relationships - Entity connections
State Management
State flows through the system:
- Providers contribute context
- Runtime composes state
- Actions use state for decisions
- Evaluators process results
Plugin Loading
Service Lifecycle
Event Flow
Events propagate through the system:
- Runtime emits event
- Plugins handle event
- Services react to events
- State updates