xiangpei
2025-04-18 0aa739db8268b442ab74634289ffed00124a976a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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;
    }
 
}