mateclaw/mateclaw-server/src/main/java/vip/mate/planning/model/SubPlanEntity.java
2026-06-22 15:17:06 +08:00

58 lines
1.4 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package vip.mate.planning.model;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;
/**
* 子计划步骤实体
*
* @author MateClaw Team
*/
@Data
@TableName("mate_sub_plan")
public class SubPlanEntity {
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/** 所属计划 ID */
private Long planId;
/** 步骤序号从0开始 */
private Integer stepIndex;
/** 步骤描述 */
private String description;
/** 步骤状态pending / running / completed / failed */
private String status;
/**
* Delegated agent id for this step. When non-null, the executor routes this
* step to that specialist agent instead of the parent (plan) agent. Null =
* run with the parent agent (original behavior). The frontend resolves the
* display name from this id via the agent store.
*/
private Long assignedAgentId;
/** 步骤执行结果 */
@TableField(value = "result", updateStrategy = FieldStrategy.ALWAYS)
private String result;
/** 开始时间 */
private LocalDateTime startTime;
/** 结束时间 */
private LocalDateTime endTime;
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
private Integer deleted;
}