SPAgent: Adaptive Task Decomposition and Model Selection for General Video Generation and Editing