mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 09:01:09 +03:00
Bugfix/throw error on agent tool call error (#4464)
throw error on agent tool call error
This commit is contained in:
@@ -1442,6 +1442,8 @@ class Agent_Agentflow implements INode {
|
||||
toolOutput: '',
|
||||
error: getErrorMessage(e)
|
||||
})
|
||||
sseStreamer?.streamUsedToolsEvent(chatId, flatten(usedTools))
|
||||
throw new Error(getErrorMessage(e))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1678,6 +1680,8 @@ class Agent_Agentflow implements INode {
|
||||
toolOutput: '',
|
||||
error: getErrorMessage(e)
|
||||
})
|
||||
sseStreamer?.streamUsedToolsEvent(chatId, flatten(usedTools))
|
||||
throw new Error(getErrorMessage(e))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user