alibct 2 месяцев назад
Родитель
Сommit
e2fc7d8b8f

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

@@ -44,19 +44,19 @@ public class AgentPlanDO extends BaseDO {
     private String messageContent;
 
     /**
-     * 规划思考过程
+     * 规划思考过程内容输入
      */
-    private String thinking;
+    private String think_input;
 
     /**
-     * 计划主题,大模型根据用户消息生成
+     * 规划思考过程内容输出
      */
-    private String title;
+    private String think_output;
 
     /**
-     * 计划的步骤列表
+     * 计划主题,大模型根据用户消息生成
      */
-    private String steps;
+    private String title;
 
     /**
      * 开始时间
@@ -69,14 +69,14 @@ public class AgentPlanDO extends BaseDO {
     private LocalDateTime endTime;
 
     /**
-     * 执行时长(秒)
+     * 规划时长(秒)
      */
     private Integer duration;
 
     /**
      * 当前执行的步骤编号
      */
-    private Integer currentStep;
+    private Integer currentStepId;
 
     /**
      * 是否完成:0未完成 1已完成

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

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

+ 13 - 5
pavis-module-aigc/src/main/java/com/pavis/admin/aigc/model/req/AgentPlanReq.java

@@ -54,12 +54,20 @@ public class AgentPlanReq implements Serializable {
     private String messageContent;
 
     /**
-     * 规划思考过程
+     * 规划思考过程内容输入
      */
-    @Schema(description = "规划思考过程")
-    @NotBlank(message = "规划思考过程不能为空")
-    @Length(max = 2147483647, message = "规划思考过程长度不能超过 {max} 个字符")
-    private String thinking;
+    @Schema(description = "规划思考过程内容输入")
+    @NotBlank(message = "规划思考过程内容输入不能为空")
+    @Length(max = 2147483647, message = "规划思考过程内容输入长度不能超过 {max} 个字符")
+    private String think_input;
+
+    /**
+     * 规划思考过程内容输入
+     */
+    @Schema(description = "规划思考过程内容输出")
+    @NotBlank(message = "规划思考过程内容输出不能为空")
+    @Length(max = 2147483647, message = "规划思考过程内容输出长度不能超过 {max} 个字符")
+    private String think_output;
 
     /**
      * 计划主题,大模型根据用户消息生成

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

@@ -8,6 +8,7 @@ import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
 import com.alibaba.excel.annotation.ExcelProperty;
 
 import com.pavis.admin.common.model.resp.BaseDetailResp;
+
 import java.io.Serial;
 import java.time.*;
 
@@ -54,11 +55,18 @@ public class AgentPlanDetailResp extends BaseDetailResp {
     private String messageContent;
 
     /**
-     * 规划思考过程
+     * 规划思考过程内容输入
+     */
+    @Schema(description = "规划思考过程内容输入")
+    @ExcelProperty(value = "规划思考过程内容输入")
+    private String think_input;
+
+    /**
+     * 规划思考过程内容输出
      */
-    @Schema(description = "规划思考过程")
-    @ExcelProperty(value = "规划思考过程")
-    private String thinking;
+    @Schema(description = "规划思考过程内容输出")
+    @ExcelProperty(value = "规划思考过程内容输出")
+    private String think_output;
 
     /**
      * 计划主题,大模型根据用户消息生成
@@ -67,13 +75,6 @@ public class AgentPlanDetailResp extends BaseDetailResp {
     @ExcelProperty(value = "计划主题,大模型根据用户消息生成")
     private String title;
 
-    /**
-     * 计划的步骤列表
-     */
-    @Schema(description = "计划的步骤列表")
-    @ExcelProperty(value = "计划的步骤列表")
-    private String steps;
-
     /**
      * 开始时间
      */
@@ -100,7 +101,7 @@ public class AgentPlanDetailResp extends BaseDetailResp {
      */
     @Schema(description = "当前执行的步骤编号")
     @ExcelProperty(value = "当前执行的步骤编号")
-    private Integer currentStep;
+    private Integer currentStepId;
 
     /**
      * 是否完成:0未完成 1已完成

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

@@ -46,22 +46,22 @@ public class AgentPlanResp extends BaseResp {
     private String messageContent;
 
     /**
-     * 规划思考过程
+     * 规划思考过程内容输入
      */
-    @Schema(description = "规划思考过程")
-    private String thinking;
+    @Schema(description = "规划思考过程内容输入")
+    private String think_input;
 
     /**
-     * 计划主题,大模型根据用户消息生成
+     * 规划思考过程内容输出
      */
-    @Schema(description = "计划主题,大模型根据用户消息生成")
-    private String title;
+    @Schema(description = "规划思考过程内容输出")
+    private String think_output;
 
     /**
-     * 计划的步骤列表
+     * 计划主题,大模型根据用户消息生成
      */
-    @Schema(description = "计划的步骤列表")
-    private String steps;
+    @Schema(description = "计划主题,大模型根据用户消息生成")
+    private String title;
 
     /**
      * 开始时间
@@ -85,7 +85,7 @@ public class AgentPlanResp extends BaseResp {
      * 当前执行的步骤编号
      */
     @Schema(description = "当前执行的步骤编号")
-    private Integer currentStep;
+    private Integer currentStepId;
 
     /**
      * 是否完成:0未完成 1已完成

+ 10 - 10
pavis-webapi/src/main/resources/db/changelog/mysql/main_table.sql

@@ -895,19 +895,19 @@ CREATE TABLE IF NOT EXISTS `aigc_agent_plan`
     `conversation_id` BIGINT UNSIGNED NOT NULL COMMENT '所属会话ID',
     `message_id`      BIGINT UNSIGNED NOT NULL COMMENT '对话消息Id',
     `message_content` LONGTEXT        NOT NULL COMMENT '对话消息内容',
-    `thinking`        LONGTEXT        NOT NULL COMMENT '规划思考过程',
+    `think_input`     LONGTEXT        NOT NULL COMMENT '规划思考过程内容输入',
+    `think_output`    LONGTEXT        NOT NULL COMMENT '规划思考过程内容输出',
     `title`           VARCHAR(500)    NOT NULL COMMENT '计划主题,大模型根据用户消息生成',
-    `steps`           JSON       DEFAULT NULL COMMENT '计划的步骤列表',
-    `start_time`      DATETIME        NOT NULL COMMENT '开始时间',
-    `end_time`        DATETIME   DEFAULT NULL COMMENT '结束时间',
-    `duration`        INT        DEFAULT NULL COMMENT '执行时长(秒)',
-    `current_step`    INT        DEFAULT 0 COMMENT '当前执行的步骤编号',
-    `completed`       TINYINT(1) DEFAULT 0 COMMENT '是否完成:0未完成 1已完成',
-    `summary`         TEXT       DEFAULT NULL COMMENT '执行总结',
+    `start_time`      DATETIME        NOT NULL COMMENT '规划开始时间',
+    `end_time`        DATETIME        DEFAULT NULL COMMENT '规划结束时间',
+    `duration`        INT             DEFAULT NULL COMMENT '怪话时长(秒)',
+    `current_step_id` BIGINT UNSIGNED DEFAULT NULL COMMENT '当前执行的步骤编号',
+    `completed`       TINYINT(1)      DEFAULT 0 COMMENT '计划是否完成:0未完成 1已完成',
+    `summary`         TEXT            DEFAULT NULL COMMENT '规划总结',
     `create_user`     BIGINT          NOT NULL COMMENT '创建人',
     `create_time`     DATETIME        NOT NULL COMMENT '创建时间',
-    `update_user`     BIGINT     DEFAULT NULL COMMENT '修改人',
-    `update_time`     DATETIME   DEFAULT NULL COMMENT '修改时间',
+    `update_user`     BIGINT          DEFAULT NULL COMMENT '修改人',
+    `update_time`     DATETIME        DEFAULT NULL COMMENT '修改时间',
     PRIMARY KEY (`id`),
     KEY `idx_message_id` (`message_id`),
     KEY `idx_conversation_id` (`conversation_id`),