package com.monkeylessey.domain.vo;
|
|
import com.monkeylessey.domain.entity.Session;
|
import com.monkeylessey.sys.domain.base.AbsVo;
|
import org.springframework.lang.NonNull;
|
import org.springframework.beans.BeanUtils;
|
import io.swagger.annotations.ApiModel;
|
import lombok.Data;
|
|
/**
|
* chat对话展示
|
*
|
* @author 向培
|
* @since 2025-04-18
|
*/
|
@Data
|
@ApiModel(value = "chat对话响应数据", description = "chat对话响应数据")
|
public class SessionVO extends AbsVo {
|
|
/** 会话名称 */
|
private String sessionName;
|
|
/** 会话模式 */
|
private String mode;
|
|
/** 知识库 */
|
private String kbName;
|
|
/** */
|
private String topK;
|
|
/** */
|
private String scoreThreshold;
|
|
/** */
|
private Integer stream;
|
|
/** 大模型 */
|
private String model;
|
|
/** */
|
private String temperature;
|
|
/** 最大吐字数 */
|
private Integer maxTokens;
|
|
/** */
|
private String promptName;
|
|
/** 是否只返回检索结果不调用大模型 */
|
private Integer returnDirect;
|
|
/** */
|
private String userId;
|
|
public static SessionVO getVoByEntity(@NonNull Session entity, SessionVO vo) {
|
if(vo == null) {
|
vo = new SessionVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|