AgentBrick
Open-source framework translating natural language prompts into structured LDraw CAD models and voxel assemblies using LangChain agents and LangGraph workflows.
Technology Readiness Level
Technology Validated in Lab
Key components and software architecture modules are integrated and tested together in a controlled laboratory environment, establishing that disparate elements work together to achieve baseline performance.
Framework alignment: Standardized 9-level TRL (NASA / EU Horizon Europe).
Core Challenge
Generating valid 3D CAD assemblies and physical brick models directly from unconstrained natural language prompts is prone to hallucination, geometrical inconsistencies, and structural syntax violations inherent to discrete modeling standards like LDraw.
System Architecture
A multi-stage agentic CAD pipeline built with LangChain and LangGraph that systematically decomposes prompts into descriptive specifications, topological component graphs, and discrete voxel grids before synthesizing validated LDraw assemblies.
Key Capabilities
- Conversational CAD Generation: Translates high-level natural language prompts into syntactically valid and modular LDraw CAD models.
- LangGraph State Machine: Orchestrates multi-phase workflows with deterministic state transitions across description, topology, and voxel resolution.
- Topological Component Extraction: Derives structural sub-assemblies and interface contact graphs to guarantee coherent mechanical connectivity.
- Discrete Voxel Discretization: Evaluates coordinate occupancy within configurable 3D bounding grids for precise brick mapping.
Technology Stack
- Agentic AI & Orchestration: LangGraph, LangChain, Pydantic, Llama 3.2
- CAD & Spatial Representation: LDraw Standard, Discrete Voxel Grids, Component-Interface Graphs
- Engineering & Quality: Python, Pyright Static Typing, Black Formatter
Verifiable Outcomes
- Functional open-source framework demonstrating end-to-end Chat-to-CAD synthesis for discrete brick models.
- Multi-agent architecture replacing unstructured LLM generation with validated topological and spatial intermediate states.
- Extensible modular repository with custom agent middlewares, state validation schemas, and reproducible workflow tests.

