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;
|
}
|
|
}
|