mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
[feature][chat]Add switch to allow human involvement.#1729
This commit is contained in:
@@ -3,6 +3,7 @@ package com.tencent.supersonic.chat.server.agent;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Sets;
|
||||
import com.tencent.supersonic.chat.server.memory.MemoryReviewTask;
|
||||
import com.tencent.supersonic.common.pojo.ChatApp;
|
||||
import com.tencent.supersonic.common.pojo.RecordInfo;
|
||||
import lombok.Data;
|
||||
@@ -21,6 +22,7 @@ public class Agent extends RecordInfo {
|
||||
private Integer status;
|
||||
private List<String> examples;
|
||||
private Integer enableSearch;
|
||||
private Integer enableFeedback;
|
||||
private String toolConfig;
|
||||
private Map<String, ChatApp> chatAppConfig = Collections.EMPTY_MAP;
|
||||
private VisualConfig visualConfig;
|
||||
@@ -44,7 +46,7 @@ public class Agent extends RecordInfo {
|
||||
}
|
||||
|
||||
public boolean enableMemoryReview() {
|
||||
return false;
|
||||
return chatAppConfig.get(MemoryReviewTask.APP_KEY).isEnable();
|
||||
}
|
||||
|
||||
public static boolean containsAllModel(Set<Long> detectViewIds) {
|
||||
|
||||
@@ -33,6 +33,8 @@ public class AgentDO {
|
||||
|
||||
private Integer enableSearch;
|
||||
|
||||
private Integer enableFeedback;
|
||||
|
||||
private String toolConfig;
|
||||
|
||||
private String chatModelConfig;
|
||||
|
||||
Reference in New Issue
Block a user