mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 15:01:11 +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: '',
|
toolOutput: '',
|
||||||
error: getErrorMessage(e)
|
error: getErrorMessage(e)
|
||||||
})
|
})
|
||||||
|
sseStreamer?.streamUsedToolsEvent(chatId, flatten(usedTools))
|
||||||
|
throw new Error(getErrorMessage(e))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1678,6 +1680,8 @@ class Agent_Agentflow implements INode {
|
|||||||
toolOutput: '',
|
toolOutput: '',
|
||||||
error: getErrorMessage(e)
|
error: getErrorMessage(e)
|
||||||
})
|
})
|
||||||
|
sseStreamer?.streamUsedToolsEvent(chatId, flatten(usedTools))
|
||||||
|
throw new Error(getErrorMessage(e))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user