Commit 8964d53d authored by alex yao's avatar alex yao

fix

parent 88754a48
...@@ -163,6 +163,9 @@ public class AgentApplicationTools { ...@@ -163,6 +163,9 @@ public class AgentApplicationTools {
* 判断将会调用的插件-用于扣减积分 * 判断将会调用的插件-用于扣减积分
*/ */
public static List<Tool> checkPluginUse(List<Message> messages, List<Tool> tools) { public static List<Tool> checkPluginUse(List<Message> messages, List<Tool> tools) {
if (CollectionUtils.isEmpty(messages) || CollectionUtils.isEmpty(tools)) {
return null;
}
LLMService llmService = SpringUtils.getBean(LLMService.class); LLMService llmService = SpringUtils.getBean(LLMService.class);
String query = messages.get(messages.size() - 1).getContent().toString(); String query = messages.get(messages.size() - 1).getContent().toString();
List<Tool> deductionTools = new ArrayList<>(); List<Tool> deductionTools = new ArrayList<>();
......
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