Commit 4c803b86 authored by alex yao's avatar alex yao

feat: 基础提示词模板

parent 020b9b29
......@@ -325,8 +325,7 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
}
private String buildDialogsPrompt(List<Message> messages, String agentSystem, String[] knowledgeIds) {
// todo 获取提示词模板
String promptTemplate = "${agentSystem}";
String promptTemplate = bizAgentApplicationGcConfigService.getByConfigCode(AgentApplicationGCConfigConstants.AGENT_BASE_SYSTEM).getConfigSystem();
promptTemplate = promptTemplate.replace("${agentSystem}", StringUtils.isNotBlank(agentSystem) ? agentSystem : StringUtils.EMPTY);
// 调用知识库
if (ArrayUtils.isNotEmpty(knowledgeIds)) {
......
......@@ -15,5 +15,7 @@ public interface AgentApplicationGCConfigConstants {
String AGENT_INFO = "AgentInfo";
String AGENT_BASE_SYSTEM = "AgentBaseSystem";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment