feat(ai-web): 输出节点改为多变量输出
This commit is contained in:
@@ -10,10 +10,11 @@ import lombok.extern.slf4j.Slf4j;
|
||||
*/
|
||||
@Slf4j
|
||||
public class OutputNode extends FlowNodeRunner {
|
||||
private static final String KEY = "flow_outputs";
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
String expression = getData("output");
|
||||
var targetVariable = FlowHelper.generateVariable(expression, getContext());
|
||||
log.info("Target: {}", targetVariable);
|
||||
var variableMap = FlowHelper.generateInputVariablesMap(getNodeId(), getContext());
|
||||
getContext().getData().put(KEY, variableMap.toMap());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user