feat: 完成管理端聊天工作台收口
- 新增管理端聊天工作台与会话级额外知识库持久化 - 补齐发布态聊天、历史会话只读判断与答案版本切换 - 新增 chat_round 热数据与主线消息读取支撑
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package tech.easyflow.core.runtime;
|
||||
|
||||
/**
|
||||
* 聊天运行时扩展字段键。
|
||||
*/
|
||||
public final class ChatRuntimeExtKeys {
|
||||
|
||||
/**
|
||||
* 会话级额外知识库 ID 列表。
|
||||
*/
|
||||
public static final String EXTRA_KNOWLEDGE_IDS = "extraKnowledgeIds";
|
||||
|
||||
/**
|
||||
* 当前请求要重答的轮次 ID。
|
||||
*/
|
||||
public static final String REGENERATE_ROUND_ID = "regenerateRoundId";
|
||||
|
||||
/**
|
||||
* 当前请求归属的轮次 ID。
|
||||
*/
|
||||
public static final String CURRENT_ROUND_ID = "currentRoundId";
|
||||
|
||||
/**
|
||||
* 当前请求归属的轮次序号。
|
||||
*/
|
||||
public static final String CURRENT_ROUND_NO = "currentRoundNo";
|
||||
|
||||
/**
|
||||
* 当前请求生成的答案版本序号。
|
||||
*/
|
||||
public static final String CURRENT_VARIANT_INDEX = "currentVariantIndex";
|
||||
|
||||
private ChatRuntimeExtKeys() {
|
||||
}
|
||||
}
|
||||
@@ -16,6 +16,10 @@ public class ChatRuntimeMessage implements Serializable {
|
||||
private Date createdAt = new Date();
|
||||
private BigInteger senderId;
|
||||
private String senderName;
|
||||
private BigInteger roundId;
|
||||
private Integer roundNo;
|
||||
private String messageKind;
|
||||
private Integer variantIndex;
|
||||
|
||||
public BigInteger getMessageId() {
|
||||
return messageId;
|
||||
@@ -80,4 +84,36 @@ public class ChatRuntimeMessage implements Serializable {
|
||||
public void setSenderName(String senderName) {
|
||||
this.senderName = senderName;
|
||||
}
|
||||
|
||||
public BigInteger getRoundId() {
|
||||
return roundId;
|
||||
}
|
||||
|
||||
public void setRoundId(BigInteger roundId) {
|
||||
this.roundId = roundId;
|
||||
}
|
||||
|
||||
public Integer getRoundNo() {
|
||||
return roundNo;
|
||||
}
|
||||
|
||||
public void setRoundNo(Integer roundNo) {
|
||||
this.roundNo = roundNo;
|
||||
}
|
||||
|
||||
public String getMessageKind() {
|
||||
return messageKind;
|
||||
}
|
||||
|
||||
public void setMessageKind(String messageKind) {
|
||||
this.messageKind = messageKind;
|
||||
}
|
||||
|
||||
public Integer getVariantIndex() {
|
||||
return variantIndex;
|
||||
}
|
||||
|
||||
public void setVariantIndex(Integer variantIndex) {
|
||||
this.variantIndex = variantIndex;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user