Skip to content

Commit 9a6fb85

Browse files
pythonHuangclaude
andcommitted
feat: AI生成带参数定义-流程智能编排助手生成的流程含入参/出参定义(与节点INPUT来源/OUTPUT映射对应)预览展示并随流程入库(paramType5/6);接口智能接入助手生成的接口含入参/出参(位置/必填/说明)预览展开展示并写入参数表(paramType1/2)
Co-Authored-By: Claude Code <noreply@anthropic.com>
1 parent 96028ce commit 9a6fb85

4 files changed

Lines changed: 281 additions & 71 deletions

File tree

‎Juggle.Api/Controllers/Api/AiController.cs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public async Task<ApiResult> ApplyFlow([FromBody] AiApplyFlowRequest req)
171171
{
172172
try
173173
{
174-
var result = await _aiService.ApplyFlowAsync(req.FlowName, req.FlowDesc, req.GroupName, req.Nodes);
174+
var result = await _aiService.ApplyFlowAsync(req.FlowName, req.FlowDesc, req.GroupName, req.Nodes, req.InputParams, req.OutputParams);
175175
return ApiResult.Success(result);
176176
}
177177
catch (Exception ex) { return ApiResult.Fail(ex.Message); }
@@ -375,6 +375,8 @@ public class AiApplyFlowRequest
375375
public string? FlowDesc { get; set; }
376376
public string? GroupName { get; set; }
377377
public List<Dictionary<string, object?>>? Nodes { get; set; }
378+
public List<Dictionary<string, object?>>? InputParams { get; set; }
379+
public List<Dictionary<string, object?>>? OutputParams { get; set; }
378380
}
379381

380382
public class AiGenerateApisRequest

0 commit comments

Comments
 (0)