INNER CODE UNIT · Python

_mock_plan

F-R-L/forge-film · forge/cli.py:188

def _mock_plan(story: str, num_scenes: int):
    from forge.compiler.schema import ProductionPlan, Scene, SceneType
    types = list(SceneType)
    scenes = [
        Scene(
            id=f"S{i+1}",
            description=f"Scene {i+1} from story",
            complexity=3,
            scene_type=types[i % len(types)],
            estimated_duration_sec=5.0,
        )
        for i in range(num_scenes)
    ]
    dag = {s.id: [] for s in scenes}
    return ProductionPlan(title="Mock Film", scenes=scenes, assets=[], dag=dag)


def _print_dag_enhanced(plan, routing: dict, cfg=None):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…