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

import lombok.Data;

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

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.*;

/**
 * 智能体执行步骤详情信息
 *
 * @author semi
 * @since 2025/05/26 17:28
 */
@Data
@ExcelIgnoreUnannotated
@Schema(description = "智能体执行步骤详情信息")
public class AgentExecutionStepDetailResp extends BaseDetailResp {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 执行ID
     */
    @Schema(description = "执行ID")
    @ExcelProperty(value = "执行ID")
    private Long executionId;

    /**
     * 步骤索引
     */
    @Schema(description = "步骤索引")
    @ExcelProperty(value = "步骤索引")
    private Integer stepIndex;

    /**
     * 步骤类型:think/tool/action/response
     */
    @Schema(description = "步骤类型:think/tool/action/response")
    @ExcelProperty(value = "步骤类型:think/tool/action/response")
    private String stepType;

    /**
     * 工具ID
     */
    @Schema(description = "工具ID")
    @ExcelProperty(value = "工具ID")
    private Long toolId;

    /**
     * 工具名称
     */
    @Schema(description = "工具名称")
    @ExcelProperty(value = "工具名称")
    private String toolName;

    /**
     * 输入内容
     */
    @Schema(description = "输入内容")
    @ExcelProperty(value = "输入内容")
    private String input;

    /**
     * 输出结果
     */
    @Schema(description = "输出结果")
    @ExcelProperty(value = "输出结果")
    private String output;

    /**
     * 状态:running/completed/failed
     */
    @Schema(description = "状态:running/completed/failed")
    @ExcelProperty(value = "状态:running/completed/failed")
    private String status;

    /**
     * 开始时间
     */
    @Schema(description = "开始时间")
    @ExcelProperty(value = "开始时间")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @Schema(description = "结束时间")
    @ExcelProperty(value = "结束时间")
    private LocalDateTime endTime;

    /**
     * 执行时长(毫秒)
     */
    @Schema(description = "执行时长(毫秒)")
    @ExcelProperty(value = "执行时长(毫秒)")
    private Integer duration;

    /**
     * 错误信息
     */
    @Schema(description = "错误信息")
    @ExcelProperty(value = "错误信息")
    private String errorMessage;
}