Commit 16ca8733 authored by alex yao's avatar alex yao

优化记忆函数主键

parent d6f0352c
......@@ -149,7 +149,7 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
if (CollectionUtils.isNotEmpty(items)) {
logger.info("variables structure cache remove,items:{}", items);
for (DialogsIdsQueryByAgentIdQueryItem item : items) {
String contentKey = SetValueMemoryConstants.REDIS_PREFIX + item.getDialogsId() + ":";
String contentKey = SetValueMemoryConstants.REDIS_PREFIX + item.getDialogsId() + ":" + bizAgentApplicationInfoEntity.getAgentId() + ":";
redisService.delByPre(contentKey);
}
}
......@@ -809,7 +809,7 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
if (functionCallResult != null && functionCallResult.isNeed()) {
// 执行函数返回结果
LargeModelFunctionEnum functionEnum = LargeModelFunctionEnum.valueOf(functionCallResult.getFunctionCall().getName());
String functionResult = functionEnum.getFunction().doFunction(functionCallResult.getFunctionCall().getArguments(), identifier + "_" + agentId);
String functionResult = functionEnum.getFunction().doFunction(functionCallResult.getFunctionCall().getArguments(), identifier + ":" + agentId);
//构造返回结果
result.setFunctionName(functionCallResult.getFunctionCall().getName());
......
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