10 lines
381 B
Plaintext
10 lines
381 B
Plaintext
# -*- coding: utf-8 -*-
|
|
# graph_validate.dspy — 校验画布图(无入口/孤立块/环形/参数/变量引用/函数引用)
|
|
# POST /drag/api/graph_validate.dspy body: {blocks, connections}
|
|
try:
|
|
ns = dict(params_kw)
|
|
result = await graph_validate(ns)
|
|
return result
|
|
except Exception as e:
|
|
return {'success': False, 'message': 'graph_validate.dspy: ' + str(e)}
|