mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(AI Agent Node): Throw better errors for non-tool agents when using structured tools (#11582)
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user