# -*- coding: utf-8 -*- # graph_compile.dspy — 编译画布为 script_engine 可执行脚本 # POST /drag/api/graph_compile.dspy body: {name?, blocks, connections} try: ns = dict(params_kw) result = await graph_compile(ns) return result except Exception as e: return {'success': False, 'message': 'graph_compile.dspy: ' + str(e)}