com.antgroup.antchain.openapi.aitechguard.models.CheckAicoguardrailsAskResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-aitechguard Show documentation
Show all versions of openapi-aitechguard Show documentation
Ant Chain AITECHGUARD SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.aitechguard.models;
import com.aliyun.tea.*;
public class CheckAicoguardrailsAskResponse extends TeaModel {
// 请求唯一ID,用于链路跟踪和问题排查
@NameInMap("req_msg_id")
public String reqMsgId;
// 结果码,一般OK表示调用成功
@NameInMap("result_code")
public String resultCode;
// 异常信息的文本描述
@NameInMap("result_msg")
public String resultMsg;
// 会话ID,用于匹配多轮对话上下文
@NameInMap("session_id")
public String sessionId;
// 唯一定位一个问答对
@NameInMap("request_id")
public String requestId;
// 是否安全无风险. true:安全无风险. false:有风险
@NameInMap("safe")
public Boolean safe;
// 安全动作
// 提问场景
// BLOCK:拦截
// SECURITY_ANSWER:安全代答
// SECURITY_PROMPT:安全提示增强
@NameInMap("action_code")
public String actionCode;
// 安全代答的回答
@NameInMap("security_answer")
public String securityAnswer;
// 有安全风险时的提问改写
@NameInMap("security_prompt")
public String securityPrompt;
// 有风险时的风险类型,一级风险分类
@NameInMap("risk_category")
public String riskCategory;
// 有风险时的风险类型,二级风险明细分类
@NameInMap("risk_label")
public String riskLabel;
// 风险等级分数,0-100,分数越高风险等级越高
@NameInMap("risk_score")
public Long riskScore;
// 命中风险场景的风险词
@NameInMap("risk_words")
public java.util.List riskWords;
// 风险词索引
@NameInMap("risk_words_index")
public java.util.List riskWordsIndex;
// 会话动作
// END_SESSION:终止会话
// RECALL_QUERY:撤回提问
@NameInMap("session_action")
public String sessionAction;
public static CheckAicoguardrailsAskResponse build(java.util.Map map) throws Exception {
CheckAicoguardrailsAskResponse self = new CheckAicoguardrailsAskResponse();
return TeaModel.build(map, self);
}
public CheckAicoguardrailsAskResponse setReqMsgId(String reqMsgId) {
this.reqMsgId = reqMsgId;
return this;
}
public String getReqMsgId() {
return this.reqMsgId;
}
public CheckAicoguardrailsAskResponse setResultCode(String resultCode) {
this.resultCode = resultCode;
return this;
}
public String getResultCode() {
return this.resultCode;
}
public CheckAicoguardrailsAskResponse setResultMsg(String resultMsg) {
this.resultMsg = resultMsg;
return this;
}
public String getResultMsg() {
return this.resultMsg;
}
public CheckAicoguardrailsAskResponse setSessionId(String sessionId) {
this.sessionId = sessionId;
return this;
}
public String getSessionId() {
return this.sessionId;
}
public CheckAicoguardrailsAskResponse setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public CheckAicoguardrailsAskResponse setSafe(Boolean safe) {
this.safe = safe;
return this;
}
public Boolean getSafe() {
return this.safe;
}
public CheckAicoguardrailsAskResponse setActionCode(String actionCode) {
this.actionCode = actionCode;
return this;
}
public String getActionCode() {
return this.actionCode;
}
public CheckAicoguardrailsAskResponse setSecurityAnswer(String securityAnswer) {
this.securityAnswer = securityAnswer;
return this;
}
public String getSecurityAnswer() {
return this.securityAnswer;
}
public CheckAicoguardrailsAskResponse setSecurityPrompt(String securityPrompt) {
this.securityPrompt = securityPrompt;
return this;
}
public String getSecurityPrompt() {
return this.securityPrompt;
}
public CheckAicoguardrailsAskResponse setRiskCategory(String riskCategory) {
this.riskCategory = riskCategory;
return this;
}
public String getRiskCategory() {
return this.riskCategory;
}
public CheckAicoguardrailsAskResponse setRiskLabel(String riskLabel) {
this.riskLabel = riskLabel;
return this;
}
public String getRiskLabel() {
return this.riskLabel;
}
public CheckAicoguardrailsAskResponse setRiskScore(Long riskScore) {
this.riskScore = riskScore;
return this;
}
public Long getRiskScore() {
return this.riskScore;
}
public CheckAicoguardrailsAskResponse setRiskWords(java.util.List riskWords) {
this.riskWords = riskWords;
return this;
}
public java.util.List getRiskWords() {
return this.riskWords;
}
public CheckAicoguardrailsAskResponse setRiskWordsIndex(java.util.List riskWordsIndex) {
this.riskWordsIndex = riskWordsIndex;
return this;
}
public java.util.List getRiskWordsIndex() {
return this.riskWordsIndex;
}
public CheckAicoguardrailsAskResponse setSessionAction(String sessionAction) {
this.sessionAction = sessionAction;
return this;
}
public String getSessionAction() {
return this.sessionAction;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy