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

import lombok.Data;

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

import com.pavis.admin.common.model.resp.BaseResp;
import java.io.Serial;
import java.time.*;

/**
 * 智能体执行记录信息
 *
 * @author semi
 * @since 2025/05/26 17:28
 */
@Data
@Schema(description = "智能体执行记录信息")
public class AgentExecutionResp extends BaseResp {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 智能体ID
     */
    @Schema(description = "智能体ID")
    private Long agentId;

    /**
     * 会话ID
     */
    @Schema(description = "会话ID")
    private Long conversationId;

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long userId;

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

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

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

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

    /**
     * 步骤数
     */
    @Schema(description = "步骤数")
    private Integer stepCount;

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

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

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

    /**
     * 元数据
     */
    @Schema(description = "元数据")
    private String metadata;

    /**
     * 修改人
     */
    @Schema(description = "修改人")
    private Long updateUser;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    private LocalDateTime updateTime;
}