from backend.engine.validator import validate_workflow def compile_workflow(workflow: dict) -> dict: validate_workflow(workflow) return workflow