package com.yushu.system.domain;

import com.yushu.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * AI对话消息对象 ai_message
 * 
 * @author yushu
 * @date 2024-11-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class AiMessage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 消息ID */
    private Long messageId;

    /** 会话ID */
    private Long conversationId;

    /** 角色：user/assistant/system */
    private String role;

    /** 消息内容 */
    private String content;

    /** 思考过程 */
    private String reasoning;

    /** Token消耗 */
    private Integer tokens;

    /** 响应时间（毫秒） */
    private Integer responseTime;

    /** 是否错误消息：0=否 1=是 */
    private String isError;
}

