Selaa lähdekoodia

更新 变量命名

alibct 2 kuukautta sitten
vanhempi
commit
5866e15091

+ 3 - 3
pavis-module-aigc/src/main/java/com/pavis/admin/aigc/model/entity/AgentPlanDO.java

@@ -46,12 +46,12 @@ public class AgentPlanDO extends BaseDO {
     /**
      * 规划思考过程内容输入
      */
-    private String think_input;
+    private String thinkInput;
 
     /**
      * 规划思考过程内容输出
      */
-    private String think_output;
+    private String thinkOutput;
 
     /**
      * 计划主题,大模型根据用户消息生成
@@ -76,7 +76,7 @@ public class AgentPlanDO extends BaseDO {
     /**
      * 当前执行的步骤编号
      */
-    private Integer currentStepId;
+    private Long currentStepId;
 
     /**
      * 是否完成:0未完成 1已完成

+ 2 - 2
pavis-module-aigc/src/main/java/com/pavis/admin/aigc/model/query/AgentPlanQuery.java

@@ -56,7 +56,7 @@ public class AgentPlanQuery implements Serializable {
      */
     @Schema(description = "规划思考过程内容输入")
     @Query(type = QueryType.EQ)
-    private String think_input;
+    private String thinkInput;
 
 
     /**
@@ -64,7 +64,7 @@ public class AgentPlanQuery implements Serializable {
      */
     @Schema(description = "规划思考过程内容输出")
     @Query(type = QueryType.EQ)
-    private String think_output;
+    private String thinkOutput;
 
     /**
      * 计划主题,大模型根据用户消息生成

+ 3 - 3
pavis-module-aigc/src/main/java/com/pavis/admin/aigc/model/resp/AgentPlanDetailResp.java

@@ -59,14 +59,14 @@ public class AgentPlanDetailResp extends BaseDetailResp {
      */
     @Schema(description = "规划思考过程内容输入")
     @ExcelProperty(value = "规划思考过程内容输入")
-    private String think_input;
+    private String thinkInput;
 
     /**
      * 规划思考过程内容输出
      */
     @Schema(description = "规划思考过程内容输出")
     @ExcelProperty(value = "规划思考过程内容输出")
-    private String think_output;
+    private String thinkOutput;
 
     /**
      * 计划主题,大模型根据用户消息生成
@@ -101,7 +101,7 @@ public class AgentPlanDetailResp extends BaseDetailResp {
      */
     @Schema(description = "当前执行的步骤编号")
     @ExcelProperty(value = "当前执行的步骤编号")
-    private Integer currentStepId;
+    private Long currentStepId;
 
     /**
      * 是否完成:0未完成 1已完成

+ 3 - 3
pavis-module-aigc/src/main/java/com/pavis/admin/aigc/model/resp/AgentPlanResp.java

@@ -52,13 +52,13 @@ public class AgentPlanResp extends BaseResp {
      * 规划思考过程内容输入
      */
     @Schema(description = "规划思考过程内容输入")
-    private String think_input;
+    private String thinkInput;
 
     /**
      * 规划思考过程内容输出
      */
     @Schema(description = "规划思考过程内容输出")
-    private String think_output;
+    private String thinkOutput;
 
     /**
      * 计划主题,大模型根据用户消息生成
@@ -88,7 +88,7 @@ public class AgentPlanResp extends BaseResp {
      * 当前执行的步骤编号
      */
     @Schema(description = "当前执行的步骤编号")
-    private Integer currentStepId;
+    private Long currentStepId;
 
     /**
      * 是否完成:0未完成 1已完成

+ 2 - 2
pavis-module-aigc/src/main/java/com/pavis/admin/aigc/service/impl/AgentPlanServiceImpl.java

@@ -70,7 +70,7 @@ public class AgentPlanServiceImpl extends BaseServiceImpl<AgentPlanMapper, Agent
             String agentsInfo = buildAgentsInfo();
             // 生成计划提示
             String planPrompt = generatePlanPrompt(context.getUserMessage(), agentsInfo, planId);
-            currentPlan.setThink_input(planPrompt);
+            currentPlan.setThinkInput(planPrompt);
             // 使用 LLM 生成计划
             PromptTemplate promptTemplate = new PromptTemplate(planPrompt);
             Prompt prompt = promptTemplate.create();
@@ -87,7 +87,7 @@ public class AgentPlanServiceImpl extends BaseServiceImpl<AgentPlanMapper, Agent
             String outputText = response.chatResponse().getResult().getOutput().getText();
             // 检查计划是否创建成功
             if (planId.equals(planningTool.getCurrentPlanId())) {
-                currentPlan.setThink_output(outputText);
+                currentPlan.setThinkOutput(outputText);
                 currentPlan.setEndTime(LocalDateTime.now());
                 currentPlan.setDuration(Duration.between(currentPlan.getStartTime(),currentPlan.getEndTime()).getSeconds());
                 currentPlan.setTitle(planningTool.getCurrentPlan().getTitle());