try: from src.workflows.default.main_workflow import create_deconstruction_workflow, DeconstructionWorkflow __all__ = ['create_deconstruction_workflow', 'DeconstructionWorkflow'] except ImportError: # main_workflow.py 不存在,使用递归解构工作流 try: from src.workflows.default.recursive_deconstruction_workflow import RecursiveDeconstructionWorkflow __all__ = ['RecursiveDeconstructionWorkflow'] except ImportError: __all__ = []