|
@@ -0,0 +1,442 @@
|
|
|
+package cn.iocoder.yudao.module.ai.service.chat.vo;
|
|
|
+
|
|
|
+import com.google.gson.annotations.SerializedName;
|
|
|
+import lombok.Data;
|
|
|
+
|
|
|
+import java.io.Serial;
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@Data
|
|
|
+public class KcbResponse implements Serializable {
|
|
|
+
|
|
|
+
|
|
|
+ @Serial
|
|
|
+ private static final long serialVersionUID = 2673634716823991482L;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * opening_statement :
|
|
|
+ * 您好!我是 AI 小优,您专属的 AI助手,您来说,我来办
|
|
|
+ * suggested_questions : ["生成个人数据资产"]
|
|
|
+ * suggested_questions_after_answer : {"enabled":true}
|
|
|
+ * speech_to_text : {"enabled":true}
|
|
|
+ * text_to_speech : {"enabled":true,"language":"","voice":""}
|
|
|
+ * retriever_resource : {"enabled":true}
|
|
|
+ * annotation_reply : {"enabled":false}
|
|
|
+ * more_like_this : {"enabled":false}
|
|
|
+ * user_input_form : [{"text-input":{"variable":"token","label":"令牌","type":"text-input","max_length":255,
|
|
|
+ * "required":true,"options":[]}}]
|
|
|
+ * sensitive_word_avoidance : {"enabled":false}
|
|
|
+ * file_upload : {"image":{"enabled":false,"number_limits":3,"transfer_methods":["local_file","remote_url"]}
|
|
|
+ * ,"enabled":true,"allowed_file_types":["image"],"allowed_file_extensions":[],
|
|
|
+ * "allowed_file_upload_methods":["remote_url","local_file"],"number_limits":3,"fileUploadConfig":{
|
|
|
+ * "file_size_limit":15,"batch_count_limit":5,"image_file_size_limit":10,"video_file_size_limit":100,
|
|
|
+ * "audio_file_size_limit":50,"workflow_file_upload_limit":10}}
|
|
|
+ * system_parameters : {"image_file_size_limit":10,"video_file_size_limit":100,"audio_file_size_limit":50,
|
|
|
+ * "file_size_limit":15,"workflow_file_upload_limit":10}
|
|
|
+ */
|
|
|
+
|
|
|
+ private String opening_statement;
|
|
|
+ private SuggestedQuestionsAfterAnswerBean suggested_questions_after_answer;
|
|
|
+ private SpeechToTextBean speech_to_text;
|
|
|
+ private TextToSpeechBean text_to_speech;
|
|
|
+ private RetrieverResourceBean retriever_resource;
|
|
|
+ private AnnotationReplyBean annotation_reply;
|
|
|
+ private MoreLikeThisBean more_like_this;
|
|
|
+ private SensitiveWordAvoidanceBean sensitive_word_avoidance;
|
|
|
+ private FileUploadBean file_upload;
|
|
|
+ private SystemParametersBean system_parameters;
|
|
|
+ private List<String> suggested_questions;
|
|
|
+ private List<UserInputFormBean> user_input_form;
|
|
|
+
|
|
|
+ public String getOpening_statement() {return opening_statement;}
|
|
|
+
|
|
|
+ public void setOpening_statement(String opening_statement) {this.opening_statement = opening_statement;}
|
|
|
+
|
|
|
+ public SuggestedQuestionsAfterAnswerBean getSuggested_questions_after_answer() {return suggested_questions_after_answer;}
|
|
|
+
|
|
|
+ public void setSuggested_questions_after_answer(SuggestedQuestionsAfterAnswerBean suggested_questions_after_answer) {this.suggested_questions_after_answer = suggested_questions_after_answer;}
|
|
|
+
|
|
|
+ public SpeechToTextBean getSpeech_to_text() {return speech_to_text;}
|
|
|
+
|
|
|
+ public void setSpeech_to_text(SpeechToTextBean speech_to_text) {this.speech_to_text = speech_to_text;}
|
|
|
+
|
|
|
+ public TextToSpeechBean getText_to_speech() {return text_to_speech;}
|
|
|
+
|
|
|
+ public void setText_to_speech(TextToSpeechBean text_to_speech) {this.text_to_speech = text_to_speech;}
|
|
|
+
|
|
|
+ public RetrieverResourceBean getRetriever_resource() {return retriever_resource;}
|
|
|
+
|
|
|
+ public void setRetriever_resource(RetrieverResourceBean retriever_resource) {
|
|
|
+ this.retriever_resource =
|
|
|
+ retriever_resource;
|
|
|
+ }
|
|
|
+
|
|
|
+ public AnnotationReplyBean getAnnotation_reply() {return annotation_reply;}
|
|
|
+
|
|
|
+ public void setAnnotation_reply(AnnotationReplyBean annotation_reply) {this.annotation_reply = annotation_reply;}
|
|
|
+
|
|
|
+ public MoreLikeThisBean getMore_like_this() {return more_like_this;}
|
|
|
+
|
|
|
+ public void setMore_like_this(MoreLikeThisBean more_like_this) {this.more_like_this = more_like_this;}
|
|
|
+
|
|
|
+ public SensitiveWordAvoidanceBean getSensitive_word_avoidance() {return sensitive_word_avoidance;}
|
|
|
+
|
|
|
+ public void setSensitive_word_avoidance(SensitiveWordAvoidanceBean sensitive_word_avoidance) {this.sensitive_word_avoidance = sensitive_word_avoidance;}
|
|
|
+
|
|
|
+ public FileUploadBean getFile_upload() {return file_upload;}
|
|
|
+
|
|
|
+ public void setFile_upload(FileUploadBean file_upload) {this.file_upload = file_upload;}
|
|
|
+
|
|
|
+ public SystemParametersBean getSystem_parameters() {return system_parameters;}
|
|
|
+
|
|
|
+ public void setSystem_parameters(SystemParametersBean system_parameters) {
|
|
|
+ this.system_parameters =
|
|
|
+ system_parameters;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<String> getSuggested_questions() {return suggested_questions;}
|
|
|
+
|
|
|
+ public void setSuggested_questions(List<String> suggested_questions) {
|
|
|
+ this.suggested_questions =
|
|
|
+ suggested_questions;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<UserInputFormBean> getUser_input_form() {return user_input_form;}
|
|
|
+
|
|
|
+ public void setUser_input_form(List<UserInputFormBean> user_input_form) {this.user_input_form = user_input_form;}
|
|
|
+
|
|
|
+ public static class SuggestedQuestionsAfterAnswerBean {
|
|
|
+ /**
|
|
|
+ * enabled : true
|
|
|
+ */
|
|
|
+
|
|
|
+ private boolean enabled;
|
|
|
+
|
|
|
+ public boolean isEnabled() {return enabled;}
|
|
|
+
|
|
|
+ public void setEnabled(boolean enabled) {this.enabled = enabled;}
|
|
|
+ }
|
|
|
+
|
|
|
+ public static class SpeechToTextBean {
|
|
|
+ /**
|
|
|
+ * enabled : true
|
|
|
+ */
|
|
|
+
|
|
|
+ private boolean enabled;
|
|
|
+
|
|
|
+ public boolean isEnabled() {return enabled;}
|
|
|
+
|
|
|
+ public void setEnabled(boolean enabled) {this.enabled = enabled;}
|
|
|
+ }
|
|
|
+
|
|
|
+ public static class TextToSpeechBean {
|
|
|
+ /**
|
|
|
+ * enabled : true
|
|
|
+ * language :
|
|
|
+ * voice :
|
|
|
+ */
|
|
|
+
|
|
|
+ private boolean enabled;
|
|
|
+ private String language;
|
|
|
+ private String voice;
|
|
|
+
|
|
|
+ public boolean isEnabled() {return enabled;}
|
|
|
+
|
|
|
+ public void setEnabled(boolean enabled) {this.enabled = enabled;}
|
|
|
+
|
|
|
+ public String getLanguage() {return language;}
|
|
|
+
|
|
|
+ public void setLanguage(String language) {this.language = language;}
|
|
|
+
|
|
|
+ public String getVoice() {return voice;}
|
|
|
+
|
|
|
+ public void setVoice(String voice) {this.voice = voice;}
|
|
|
+ }
|
|
|
+
|
|
|
+ public static class RetrieverResourceBean {
|
|
|
+ /**
|
|
|
+ * enabled : true
|
|
|
+ */
|
|
|
+
|
|
|
+ private boolean enabled;
|
|
|
+
|
|
|
+ public boolean isEnabled() {return enabled;}
|
|
|
+
|
|
|
+ public void setEnabled(boolean enabled) {this.enabled = enabled;}
|
|
|
+ }
|
|
|
+
|
|
|
+ public static class AnnotationReplyBean {
|
|
|
+ /**
|
|
|
+ * enabled : false
|
|
|
+ */
|
|
|
+
|
|
|
+ private boolean enabled;
|
|
|
+
|
|
|
+ public boolean isEnabled() {return enabled;}
|
|
|
+
|
|
|
+ public void setEnabled(boolean enabled) {this.enabled = enabled;}
|
|
|
+ }
|
|
|
+
|
|
|
+ public static class MoreLikeThisBean {
|
|
|
+ /**
|
|
|
+ * enabled : false
|
|
|
+ */
|
|
|
+
|
|
|
+ private boolean enabled;
|
|
|
+
|
|
|
+ public boolean isEnabled() {return enabled;}
|
|
|
+
|
|
|
+ public void setEnabled(boolean enabled) {this.enabled = enabled;}
|
|
|
+ }
|
|
|
+
|
|
|
+ public static class SensitiveWordAvoidanceBean {
|
|
|
+ /**
|
|
|
+ * enabled : false
|
|
|
+ */
|
|
|
+
|
|
|
+ private boolean enabled;
|
|
|
+
|
|
|
+ public boolean isEnabled() {return enabled;}
|
|
|
+
|
|
|
+ public void setEnabled(boolean enabled) {this.enabled = enabled;}
|
|
|
+ }
|
|
|
+
|
|
|
+ public static class FileUploadBean {
|
|
|
+ /**
|
|
|
+ * image : {"enabled":false,"number_limits":3,"transfer_methods":["local_file","remote_url"]}
|
|
|
+ * enabled : true
|
|
|
+ * allowed_file_types : ["image"]
|
|
|
+ * allowed_file_extensions : []
|
|
|
+ * allowed_file_upload_methods : ["remote_url","local_file"]
|
|
|
+ * number_limits : 3
|
|
|
+ * fileUploadConfig : {"file_size_limit":15,"batch_count_limit":5,"image_file_size_limit":10,
|
|
|
+ * "video_file_size_limit":100,"audio_file_size_limit":50,"workflow_file_upload_limit":10}
|
|
|
+ */
|
|
|
+
|
|
|
+ private ImageBean image;
|
|
|
+ private boolean enabled;
|
|
|
+ private int number_limits;
|
|
|
+ private FileUploadConfigBean fileUploadConfig;
|
|
|
+ private List<String> allowed_file_types;
|
|
|
+ private List<?> allowed_file_extensions;
|
|
|
+ private List<String> allowed_file_upload_methods;
|
|
|
+
|
|
|
+ public ImageBean getImage() {return image;}
|
|
|
+
|
|
|
+ public void setImage(ImageBean image) {this.image = image;}
|
|
|
+
|
|
|
+ public boolean isEnabled() {return enabled;}
|
|
|
+
|
|
|
+ public void setEnabled(boolean enabled) {this.enabled = enabled;}
|
|
|
+
|
|
|
+ public int getNumber_limits() {return number_limits;}
|
|
|
+
|
|
|
+ public void setNumber_limits(int number_limits) {this.number_limits = number_limits;}
|
|
|
+
|
|
|
+ public FileUploadConfigBean getFileUploadConfig() {return fileUploadConfig;}
|
|
|
+
|
|
|
+ public void setFileUploadConfig(FileUploadConfigBean fileUploadConfig) {
|
|
|
+ this.fileUploadConfig =
|
|
|
+ fileUploadConfig;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<String> getAllowed_file_types() {return allowed_file_types;}
|
|
|
+
|
|
|
+ public void setAllowed_file_types(List<String> allowed_file_types) {
|
|
|
+ this.allowed_file_types =
|
|
|
+ allowed_file_types;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<?> getAllowed_file_extensions() {return allowed_file_extensions;}
|
|
|
+
|
|
|
+ public void setAllowed_file_extensions(List<?> allowed_file_extensions) {
|
|
|
+ this.allowed_file_extensions =
|
|
|
+ allowed_file_extensions;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<String> getAllowed_file_upload_methods() {return allowed_file_upload_methods;}
|
|
|
+
|
|
|
+ public void setAllowed_file_upload_methods(List<String> allowed_file_upload_methods) {this.allowed_file_upload_methods = allowed_file_upload_methods;}
|
|
|
+
|
|
|
+ public static class ImageBean {
|
|
|
+ /**
|
|
|
+ * enabled : false
|
|
|
+ * number_limits : 3
|
|
|
+ * transfer_methods : ["local_file","remote_url"]
|
|
|
+ */
|
|
|
+
|
|
|
+ private boolean enabled;
|
|
|
+ private int number_limits;
|
|
|
+ private List<String> transfer_methods;
|
|
|
+
|
|
|
+ public boolean isEnabled() {return enabled;}
|
|
|
+
|
|
|
+ public void setEnabled(boolean enabled) {this.enabled = enabled;}
|
|
|
+
|
|
|
+ public int getNumber_limits() {return number_limits;}
|
|
|
+
|
|
|
+ public void setNumber_limits(int number_limits) {this.number_limits = number_limits;}
|
|
|
+
|
|
|
+ public List<String> getTransfer_methods() {return transfer_methods;}
|
|
|
+
|
|
|
+ public void setTransfer_methods(List<String> transfer_methods) {this.transfer_methods = transfer_methods;}
|
|
|
+ }
|
|
|
+
|
|
|
+ public static class FileUploadConfigBean {
|
|
|
+ /**
|
|
|
+ * file_size_limit : 15
|
|
|
+ * batch_count_limit : 5
|
|
|
+ * image_file_size_limit : 10
|
|
|
+ * video_file_size_limit : 100
|
|
|
+ * audio_file_size_limit : 50
|
|
|
+ * workflow_file_upload_limit : 10
|
|
|
+ */
|
|
|
+
|
|
|
+ private int file_size_limit;
|
|
|
+ private int batch_count_limit;
|
|
|
+ private int image_file_size_limit;
|
|
|
+ private int video_file_size_limit;
|
|
|
+ private int audio_file_size_limit;
|
|
|
+ private int workflow_file_upload_limit;
|
|
|
+
|
|
|
+ public int getFile_size_limit() {return file_size_limit;}
|
|
|
+
|
|
|
+ public void setFile_size_limit(int file_size_limit) {this.file_size_limit = file_size_limit;}
|
|
|
+
|
|
|
+ public int getBatch_count_limit() {return batch_count_limit;}
|
|
|
+
|
|
|
+ public void setBatch_count_limit(int batch_count_limit) {this.batch_count_limit = batch_count_limit;}
|
|
|
+
|
|
|
+ public int getImage_file_size_limit() {return image_file_size_limit;}
|
|
|
+
|
|
|
+ public void setImage_file_size_limit(int image_file_size_limit) {
|
|
|
+ this.image_file_size_limit =
|
|
|
+ image_file_size_limit;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getVideo_file_size_limit() {return video_file_size_limit;}
|
|
|
+
|
|
|
+ public void setVideo_file_size_limit(int video_file_size_limit) {
|
|
|
+ this.video_file_size_limit =
|
|
|
+ video_file_size_limit;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getAudio_file_size_limit() {return audio_file_size_limit;}
|
|
|
+
|
|
|
+ public void setAudio_file_size_limit(int audio_file_size_limit) {
|
|
|
+ this.audio_file_size_limit =
|
|
|
+ audio_file_size_limit;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getWorkflow_file_upload_limit() {return workflow_file_upload_limit;}
|
|
|
+
|
|
|
+ public void setWorkflow_file_upload_limit(int workflow_file_upload_limit) {this.workflow_file_upload_limit = workflow_file_upload_limit;}
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static class SystemParametersBean {
|
|
|
+ /**
|
|
|
+ * image_file_size_limit : 10
|
|
|
+ * video_file_size_limit : 100
|
|
|
+ * audio_file_size_limit : 50
|
|
|
+ * file_size_limit : 15
|
|
|
+ * workflow_file_upload_limit : 10
|
|
|
+ */
|
|
|
+
|
|
|
+ private int image_file_size_limit;
|
|
|
+ private int video_file_size_limit;
|
|
|
+ private int audio_file_size_limit;
|
|
|
+ private int file_size_limit;
|
|
|
+ private int workflow_file_upload_limit;
|
|
|
+
|
|
|
+ public int getImage_file_size_limit() {return image_file_size_limit;}
|
|
|
+
|
|
|
+ public void setImage_file_size_limit(int image_file_size_limit) {
|
|
|
+ this.image_file_size_limit =
|
|
|
+ image_file_size_limit;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getVideo_file_size_limit() {return video_file_size_limit;}
|
|
|
+
|
|
|
+ public void setVideo_file_size_limit(int video_file_size_limit) {
|
|
|
+ this.video_file_size_limit =
|
|
|
+ video_file_size_limit;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getAudio_file_size_limit() {return audio_file_size_limit;}
|
|
|
+
|
|
|
+ public void setAudio_file_size_limit(int audio_file_size_limit) {
|
|
|
+ this.audio_file_size_limit =
|
|
|
+ audio_file_size_limit;
|
|
|
+ }
|
|
|
+
|
|
|
+ public int getFile_size_limit() {return file_size_limit;}
|
|
|
+
|
|
|
+ public void setFile_size_limit(int file_size_limit) {this.file_size_limit = file_size_limit;}
|
|
|
+
|
|
|
+ public int getWorkflow_file_upload_limit() {return workflow_file_upload_limit;}
|
|
|
+
|
|
|
+ public void setWorkflow_file_upload_limit(int workflow_file_upload_limit) {
|
|
|
+ this.workflow_file_upload_limit =
|
|
|
+ workflow_file_upload_limit;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static class UserInputFormBean {
|
|
|
+ /**
|
|
|
+ * text-input : {"variable":"token","label":"令牌","type":"text-input","max_length":255,"required":true,
|
|
|
+ * "options":[]}
|
|
|
+ */
|
|
|
+
|
|
|
+ @SerializedName("text-input")
|
|
|
+ private TextinputBean textinput;
|
|
|
+
|
|
|
+ public TextinputBean getTextinput() {return textinput;}
|
|
|
+
|
|
|
+ public void setTextinput(TextinputBean textinput) {this.textinput = textinput;}
|
|
|
+
|
|
|
+ public static class TextinputBean {
|
|
|
+ /**
|
|
|
+ * variable : token
|
|
|
+ * label : 令牌
|
|
|
+ * type : text-input
|
|
|
+ * max_length : 255
|
|
|
+ * required : true
|
|
|
+ * options : []
|
|
|
+ */
|
|
|
+
|
|
|
+ private String variable;
|
|
|
+ private String label;
|
|
|
+ private String type;
|
|
|
+ private int max_length;
|
|
|
+ private boolean required;
|
|
|
+ private List<?> options;
|
|
|
+
|
|
|
+ public String getVariable() {return variable;}
|
|
|
+
|
|
|
+ public void setVariable(String variable) {this.variable = variable;}
|
|
|
+
|
|
|
+ public String getLabel() {return label;}
|
|
|
+
|
|
|
+ public void setLabel(String label) {this.label = label;}
|
|
|
+
|
|
|
+ public String getType() {return type;}
|
|
|
+
|
|
|
+ public void setType(String type) {this.type = type;}
|
|
|
+
|
|
|
+ public int getMax_length() {return max_length;}
|
|
|
+
|
|
|
+ public void setMax_length(int max_length) {this.max_length = max_length;}
|
|
|
+
|
|
|
+ public boolean isRequired() {return required;}
|
|
|
+
|
|
|
+ public void setRequired(boolean required) {this.required = required;}
|
|
|
+
|
|
|
+ public List<?> getOptions() {return options;}
|
|
|
+
|
|
|
+ public void setOptions(List<?> options) {this.options = options;}
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|