SAGE is a multi-agent pipeline that generates Simulink simulation code from input diagrams.
It leverages large language models, multimodal perception, and modular agentic workflows.
Given a Simulink-style simulation diagram as input (image format), SAGE produces the corresponding MATLAB Simulink code and runs the simulation automatically.
The system includes the following components:
- Multimodal Investigator: Detects blocks and connections from a simulation diagram.
- Unit Test Reviewer: Validates logical correctness of the extracted connections.
- Block Builder: Builds the simulation using
matlab.engine
in Python. - Debug Locator: Identifies whether errors come from code logic or overlooked connection issues.
🔹 Demo 1: Generating a two-bus electrical system using 4.5 for the Investigator and o3_mini for the other agents.
🔹 Demo 2: Generating a two-bus electrical system using 4o for the Investigator and o3_mini for the other agents.
🔹 Demo 3: Generating a bouncing_ball simulation using 4.5 for the Investigator and o3_mini for the other agents.
🔹 Demo 4: Generating a simulink_model using 4.5 for the Investigator and o3_mini for the other agents.
- Code release
- Documentation and setup guide