from fastapi import APIRouter

from app.schemas.concept import ConceptInput, ConceptOutput
from app.services.generative import geometry

router = APIRouter()


@router.post("", response_model=ConceptOutput)
async def create_concept(payload: ConceptInput) -> ConceptOutput:
    """Generate 3 building variants for the given parcel polygon.

    Stage 1a: returns stub with 3 empty variants.
    Stage 1b: real greedy placement.
    Stage 1c: TEAP + financial model attached.
    """
    variants = geometry.generate_stub(payload)
    return ConceptOutput(variants=variants)
