How agibotgeneral/mansion works
MANSION turns a natural-language building brief into a multi-floor 3D scene, including room layouts, architectural elements, furnishings, lighting, and rendered images. The repository contains both a LangGraph pipeline and portable layout-generation components, alongside scene-generation modules for geometry and object placement. The README establishes the overall product workflow; source excerpts show graph assembly, state, LLM configuration, and selected portable-node behavior. Several downstream implementations are listed but unsampled, so their internal calls are not inferred.
Main entry points: graph.py Pipeline graph · portable_llm_growth.py LLM-seeded growth · openai_wrapper.py LLM client · __init__.py Node registry
Components 23
Pipeline orchestration
- Pipeline graph
pipeline/graph.py - Node registry
pipeline/nodes/__init__.py - Pipeline state
pipeline/state.py
Building planning
- Portable setup
pipeline/nodes/portable_setup.py - Floor topology
pipeline/nodes/portable_topology.py - Floorplan topology
pipeline/nodes/portable_floorplan_topology.py - Room cut planning
pipeline/nodes/portable_cutting.py - LLM-seeded growth
pipeline/nodes/portable_llm_growth.py - Portable helpers
pipeline/utils/portable_helpers.py
Scene generation
- Scene conversion
pipeline/nodes/portable_convert.py - Vertical core rooms
pipeline/nodes/prepare_vertical_core_rooms.py - Toilet suite prep
pipeline/nodes/prepare_toilet_suite.py - Door generation
pipeline/nodes/generate_doors.py - Window generation
pipeline/nodes/generate_windows.py - Furniture selection
pipeline/nodes/select_objects.py - Object placement
generation/floor_objects.py - Lighting
pipeline/nodes/generate_lighting.py - Scene rendering
pipeline/nodes/render.py - Scene outputs
pipeline/nodes/save_final_outputs.py
LLM and assets
- LLM client
llm/openai_wrapper.py - LLM configuration
config/constants.py - 3D asset retrieval
generation/objaverse_retriever.py
Other components
- Building brief
Connections 22
- Building brief → Pipeline graph: starts generation
- Pipeline graph → Node registry: uses registry
pipeline/graph.py - Pipeline graph → Pipeline state: wraps state
pipeline/graph.py - Pipeline graph → LLM client: configures per-node LLM
pipeline/graph.py - LLM client → LLM configuration: loads profiles
llm/openai_wrapper.py - Pipeline graph → Portable setup
- Pipeline graph → Floor topology
- Pipeline graph → Floorplan topology
- Pipeline graph → Room cut planning
- Pipeline graph → LLM-seeded growth
- LLM-seeded growth → Portable helpers: uses helpers
pipeline/nodes/portable_llm_growth.py - Pipeline graph → Scene conversion
- Pipeline graph → Vertical core rooms
- Pipeline graph → Toilet suite prep
- Pipeline graph → Door generation
- Pipeline graph → Window generation
- Pipeline graph → Furniture selection
- Pipeline graph → Object placement
- Pipeline graph → Lighting
- Pipeline graph → Scene rendering
- Pipeline graph → Scene outputs
- Building brief → 3D asset retrieval: uses 3D assets