mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-20 06:34:55 +00:00
[fix][launcher]Enable multi-turn conversation in S2VisitsDemo.
This commit is contained in:
@@ -171,7 +171,7 @@ public class S2VisitsDemo extends S2BaseDemo {
|
||||
agentConfig.getTools().add(llmParserTool);
|
||||
}
|
||||
agent.setAgentConfig(JSONObject.toJSONString(agentConfig));
|
||||
MultiTurnConfig multiTurnConfig = new MultiTurnConfig(false);
|
||||
MultiTurnConfig multiTurnConfig = new MultiTurnConfig(true);
|
||||
agent.setMultiTurnConfig(multiTurnConfig);
|
||||
Agent agentCreated = agentService.createAgent(agent, User.getFakeUser());
|
||||
return agentCreated.getId();
|
||||
|
||||
@@ -13,6 +13,7 @@ import com.tencent.supersonic.headless.api.pojo.response.ParseResp;
|
||||
import com.tencent.supersonic.headless.api.pojo.response.QueryState;
|
||||
import com.tencent.supersonic.util.DataUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.test.context.TestPropertySource;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.Set;
|
||||
@@ -20,6 +21,7 @@ import java.util.stream.Collectors;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
@TestPropertySource(properties = {"s2.demo.enableLLM = false"})
|
||||
public class BaseTest extends BaseApplication {
|
||||
|
||||
protected final int unit = 7;
|
||||
|
||||
Reference in New Issue
Block a user