scense_drag/wwwroot/api/graph_compile.dspy
2026-08-29 21:10:23 +08:00

10 lines
349 B
Plaintext

# -*- 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)}