Loading repository data…
Loading repository data…
vero-code / repository
Spatial Engine AI: A DeepTech Agent that sees like a designer and calculates like a physicist. Powered by Gemini 3 Pro & Vision to optimize energy efficiency in built environments.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
DeepTech Autonomous Agent for Optical Physics & Energy Optimization Powered by Gemini 3 Pro & Google GenAI SDK
Spatial Engine is a multimodal AI agent designed to act as a Senior Optical Physicist. Unlike standard chatbots, it combines Generative AI's vision capabilities with a deterministic physics engine to audit rooms, calculate lighting deficits, and project energy ROI.
The agent does not "guess" math. It delegates calculations to a rigorous Python engine.
unittest to ensure 100% reliability.The agent connects physics to the real economy.
The agent can "see" and audit a room from a single photograph using Gemini Vision.
The agent possesses a "Short-term Memory" via the SpatialState class.
The agent acts as a certified engineer, not just a salesperson.
| Component | Technologies |
|---|---|
| Frontend | React 19, Vite, TailwindCSS, TypeScript |
| Backend | Python 3.12, FastAPI, Uvicorn |
| AI Core | Google GenAI SDK, Gemini 3.0 Pro, Gemini Live API |
| Infrastructure | Docker, Google Cloud Run, UV (Package Manager) |
For detailed documentation on system design and data flows, see ARCHITECTURE.md.
graph TD
User[User] -->|Interactions| FE["Frontend (React/Vite)"]
subgraph "Client Side"
FE -->|REST| GAI[Google Gemini API]
FE -->|WebSocket/RTP| Live[Gemini Multimodal Live API]
end
subgraph "Server Side (Python/FastAPI)"
FE -->|HTTP Requests| BE[Backend API]
BE -->|Calculations| PE[Physics Engine]
BE -->|Market/Search| MA[Market Agent]
BE -->|Generation| RG[Report Generator]
subgraph "Agent Core"
AC[Agent Runtime] -->|Tools| PE
AC -->|Tools| MA
AC -->|Tools| KB["Knowledge Base (RAG)"]
AC -->|State| SS[Spatial State]
end
BE -->|Invokes| AC
end
MA -->|Search| Web[Google Search]
RG -->|Outputs| PDF["PDF/HTML Reports"]
spatial-engine/
├── backend/ # FastAPI Backend
│ ├── main.py # API Entry Points
│ ├── report_generator.py # HTML Report Logic
│ └── pdf_generator.py # PDF Export Logic
├── frontend/ # React Frontend (Vite)
│ ├── src/
│ │ ├── components/ # UI Components (VisionAudit, EconomicEngine, etc.)
│ │ └── App.tsx # Main UI Layout
├── my_agent/ # The AI Core
│ ├── agent.py # The "Brain"
│ ├── market_agent.py # The "Hands"
│ ├── physics_engine.py # The "Core"
│ └── spatial_state.py # The "Memory"
├── data/
│ └── smart_home_standards.md # RAG Knowledge Base
├── tests/ # Unit Tests
├── .env # Configuration
├── pyproject.toml # Python Dependencies
└── README.md # Documentation
Python 3.12+
uv (modern Python package manager)
Google Gemini API Key
Clone & Sync:
git clone https://github.com/vero-code/spatial-engine.git
cd spatial-engine
uv sync
Configure Environment:
Create a .env file:
# for backend
GOOGLE_API_KEY=your_gemini_key_here
# for frontend
VITE_GEMINI_API_KEY=your_gemini_key_here
Run the Agent:
# Start the Backend
uv run uvicorn backend.main:app --reload
# Start the Frontend (in a new terminal)
npm run dev --prefix frontend
Run Tests:
# Verify physics engine integrity
uv run python -m unittest discover tests
Status: Fully Operational. 100% Test Coverage.
uv), Project structure, Basic ADK integration.unittest suite coverage, Chain of Thought logging.Status: Implemented. Agent "sees" geometry and materials, "reads", and "remembers".
Status: Implemented. Connecting Physics to Economics, Standards & Safety.
is_dimmable, protocol) before recommending to ensure compatibility.Status: Fully Operational. Generative UI and Reporting live.
Goal: Polish and Submission.
Built for the Gemini 3 Hackathon.