fix(AI Agent Node): Throw better errors for non-tool agents when using structured tools (#11582)

This commit is contained in:
oleg
2024-11-08 16:15:33 +01:00
committed by GitHub
parent 658568e270
commit 9b6123dfb2
7 changed files with 141 additions and 6 deletions

View File

@@ -946,7 +946,7 @@ export class WorkflowDataProxy {
defaultValue?: unknown,
) => {
if (!name || name === '') {
throw new ExpressionError('Please provide a key', {
throw new ExpressionError("Add a key, e.g. $fromAI('placeholder_name')", {
runIndex: that.runIndex,
itemIndex: that.itemIndex,
});