A multi-agent Distributed Energy Resource (DER) management system built with Google's Agent Development Kit (ADK) and SunSpec standards.
- Multi-Agent Architecture: Solar, Battery, Grid, and Coordinator agents
- SunSpec Compliance: Industry-standard data models (Models 1, 101, 124, 701)
- Real-time Optimization: Economic dispatch and grid services
- Web Interface: Interactive ADK web UI for agent management
- Safety Systems: Emergency stop and monitoring capabilities
- Grid Services: Frequency regulation, demand response, voltage support
- Python 3.9+
- uv package manager
- Gemini API key from Google AI Studio
-
Clone and setup:
git clone <repository-url> cd der_management_system_app chmod +x setup.sh ./setup.sh
-
Configure API key:
cp env_example.txt .env # Edit .env and add your GEMINI_API_KEY -
Start the system:
uv run adk web web_agents --port 8080
-
Access the interface: Open http://localhost:8080 in your browser
- Solar Agent: 10kW PV system with curtailment control
- Battery Agent: 10kWh storage with charge/discharge management
- Grid Agent: Grid interface with pricing and stability monitoring
- Coordinator Agent: System optimization and multi-agent coordination
- Energy Optimization: Automatic dispatch based on grid prices and conditions
- Grid Services: Frequency regulation, demand response, voltage support
- Safety Monitoring: Emergency stop, SOC limits, stability checks
- Real-time Data: Live SunSpec data generation and monitoring
User: "The grid price is high, what should we do?"
System: Analyzes conditions and discharges battery to reduce expensive grid imports
User: "Solar generation is too high for grid stability, what should we do?"
System: Implements solar curtailment to maintain grid stability
User: "What happens if we need to emergency stop the system?"
System: Immediately shuts down all DER components safely
The system uses environment variables for configuration:
# .env file
GEMINI_API_KEY=your_gemini_api_key_here- Framework: Google ADK with Gemini 2.0 Flash
- Standards: SunSpec Alliance data models
- Architecture: Multi-agent composition pattern
- Data: Real-time mock generation with realistic patterns
- Interface: Web-based agent interaction and monitoring
✅ Production Ready
- Multi-MW energy flow management
- Real-time optimization algorithms
- Grid service coordination
- Safety and emergency protocols
- SunSpec compliance validation
For technical support or questions about the DER management system, please refer to the documentation or contact the development team.