mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-06-13 03:11:10 +08:00
fix: 工具调用 bug
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user