49 lines
937 B
JSON
49 lines
937 B
JSON
|
|
{
|
||
|
|
"function_name": "example_function",
|
||
|
|
"display_name": "示例函数",
|
||
|
|
"description": "一个简单的示例函数",
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"name": "text",
|
||
|
|
"type": "String",
|
||
|
|
"description": "输入文本"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"name": "result",
|
||
|
|
"type": "String",
|
||
|
|
"description": "处理结果"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"nodes": [
|
||
|
|
{
|
||
|
|
"id": "input_1",
|
||
|
|
"type": "FunctionInput",
|
||
|
|
"position": {"x": 100, "y": 100},
|
||
|
|
"data": {
|
||
|
|
"param_name": "text",
|
||
|
|
"param_type": "String"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": "output_1",
|
||
|
|
"type": "FunctionOutput",
|
||
|
|
"position": {"x": 400, "y": 100},
|
||
|
|
"data": {
|
||
|
|
"output_name": "result",
|
||
|
|
"output_type": "String"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"edges": [
|
||
|
|
{
|
||
|
|
"id": "e1",
|
||
|
|
"source": "input_1",
|
||
|
|
"target": "output_1",
|
||
|
|
"sourceHandle": "output-value",
|
||
|
|
"targetHandle": "input-value"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|