fix: 工具调用 bug

This commit is contained in:
LuanY77
2025-09-20 16:48:12 +08:00
parent a97c98b75a
commit 6fb74d2688

View File

@@ -203,7 +203,7 @@ public class LlmInteractClient implements InteractClient {
// 找到对应的工具回调
ToolCallBack toolCallBack = toolRegistry.getAllTools()
.stream()
.filter(tool -> Objects.equals(tool.getName(), tool.getName()))
.filter(tool -> Objects.equals(tool.getName(), toolCall.getName()))
.findFirst()
.orElseThrow(() ->
new LiteFlowAIEngineException("Unable to find target tool with tool name: " + toolCall.getName()));