Administrator
2025-09-03 a1d01d25e2c5f48bc51557da55f40e8748d94532
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
package cc.mrbird.febs.ai.enumerates;
 
import lombok.Getter;
 
/**
 * @author Administrator
 */
 
@Getter
public enum AiTalkOutputEnum {
 
    KEY_KNOWLEDGE(4,"根据问题和用户输入的内容,分析总结并文字输出。","KEY_KNOWLEDGE"),
 
    REFERENCE_ANSWER(3,"根据问题和用户输入的内容,输出标准答案并文字输出。","REFERENCE_ANSWER"),
 
    SUGGESTION(2,"根据问题和用户输入的内容,给出建议并文字输出。","SUGGESTION"),
 
    HIGH_LIGHT(1,"根据问题和用户输入的内容,分析答案的亮点并文字输出。","HIGH_LIGHT");
 
    private final int type;
    private final String content;
    private final String code;
 
    AiTalkOutputEnum(int type, String content, String code) {
 
        this.type = type;
        this.content = content;
        this.code = code;
    }
 
    public static String getContentByType(int type) {
        for (AiTalkOutputEnum value : AiTalkOutputEnum.values()) {
            if (value.getType() ==  type) {
                return value.getContent();
            }
        }
        return null;
    }
 
    public static String getCodeByType(int type) {
        for (AiTalkOutputEnum value : AiTalkOutputEnum.values()) {
            if (value.getType() ==  type) {
                return value.getCode();
            }
        }
        return null;
    }
 
}