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 ConversationDetailResp extends BaseDetailResp {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 关联应用ID
     */
    @Schema(description = "关联应用ID")
    @ExcelProperty(value = "关联应用ID")
    private Long appId;

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

    /**
     * 使用模型ID
     */
    @Schema(description = "使用模型ID")
    @ExcelProperty(value = "使用模型ID")
    private Long modelId;

    /**
     * 对话标题
     */
    @Schema(description = "对话标题")
    @ExcelProperty(value = "对话标题")
    private String title;

    /**
     * 对话摘要
     */
    @Schema(description = "对话摘要")
    @ExcelProperty(value = "对话摘要")
    private String summary;

    /**
     * 对话初始提示词快照
     */
    @Schema(description = "对话初始提示词快照")
    @ExcelProperty(value = "对话初始提示词快照")
    private String initialPrompt;

    /**
     * 消息总数
     */
    @Schema(description = "消息总数")
    @ExcelProperty(value = "消息总数")
    private Integer messageCount;

    /**
     * 最后消息ID
     */
    @Schema(description = "最后消息ID")
    @ExcelProperty(value = "最后消息ID")
    private Long lastMessageId;

    /**
     * 最后活动时间
     */
    @Schema(description = "最后活动时间")
    @ExcelProperty(value = "最后活动时间")
    private LocalDateTime lastActive;

    /**
     * 状态:0关闭 1进行中 2置顶
     */
    @Schema(description = "状态:0关闭 1进行中 2置顶")
    @ExcelProperty(value = "状态:0关闭 1进行中 2置顶")
    private Boolean status;
}