Commit 7a898e0d authored by alex yao's avatar alex yao

feat:【变量】方法优化

parent c59469b9
...@@ -70,7 +70,7 @@ public class SetValueMemoryFunction extends AbstractLargeModelFunction { ...@@ -70,7 +70,7 @@ public class SetValueMemoryFunction extends AbstractLargeModelFunction {
for (Variable variable : variableStructure) { for (Variable variable : variableStructure) {
enumList.add(variable.getKey()); enumList.add(variable.getKey());
} }
contentName.put("enum", JsonUtils.serialize(enumList)); // 设置变量 contentName.put("enum", enumList); // 设置变量
Map<String, Object> contentValue = new HashMap<>(); Map<String, Object> contentValue = new HashMap<>();
contentValue.put("type", "string"); contentValue.put("type", "string");
contentValue.put("description", "内容值"); contentValue.put("description", "内容值");
...@@ -80,7 +80,7 @@ public class SetValueMemoryFunction extends AbstractLargeModelFunction { ...@@ -80,7 +80,7 @@ public class SetValueMemoryFunction extends AbstractLargeModelFunction {
parameters.put("type", "object"); parameters.put("type", "object");
function.put("name", "set_value_memory"); function.put("name", "set_value_memory");
function.put("description", "用enum给定的内容名来保存用户想记录的内容值"); function.put("description", "用给定的内容名来保存用户想记录的内容值");
function.put("parameters", parameters); function.put("parameters", parameters);
config.put("type", "function"); config.put("type", "function");
......
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