package com.pavis.admin.aigc.model.req;

import jakarta.validation.constraints.*;

import lombok.Data;

import io.swagger.v3.oas.annotations.media.Schema;

import org.hibernate.validator.constraints.Length;
import java.io.Serial;
import java.io.Serializable;
import java.time.*;

/**
 * 智能体执行步骤创建或修改参数
 *
 * @author semi
 * @since 2025/05/26 17:28
 */
@Data
@Schema(description = "智能体执行步骤创建或修改参数")
public class AgentExecutionStepReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 执行ID
     */
    @Schema(description = "执行ID")
    @NotNull(message = "执行ID不能为空")
    private Long executionId;

    /**
     * 步骤索引
     */
    @Schema(description = "步骤索引")
    @NotNull(message = "步骤索引不能为空")
    private Integer stepIndex;

    /**
     * 步骤类型:think/tool/action/response
     */
    @Schema(description = "步骤类型:think/tool/action/response")
    @NotBlank(message = "步骤类型:think/tool/action/response不能为空")
    @Length(max = 50, message = "步骤类型:think/tool/action/response长度不能超过 {max} 个字符")
    private String stepType;

    /**
     * 状态:running/completed/failed
     */
    @Schema(description = "状态:running/completed/failed")
    @NotBlank(message = "状态:running/completed/failed不能为空")
    @Length(max = 20, message = "状态:running/completed/failed长度不能超过 {max} 个字符")
    private String status;

    /**
     * 开始时间
     */
    @Schema(description = "开始时间")
    @NotNull(message = "开始时间不能为空")
    private LocalDateTime startTime;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    @NotNull(message = "创建人不能为空")
    private Long createUser;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @NotNull(message = "创建时间不能为空")
    private LocalDateTime createTime;
}