From 498129e9d26ef60c3707f55812b454d115b84ea0 Mon Sep 17 00:00:00 2001 From: russelj1 Date: Wed, 30 Jul 2025 15:28:33 +0100 Subject: [PATCH] Fix: ignored agentflow LLM structuredOutput keys (#4982) Fix: ignored structuredOutput keys --- packages/components/nodes/agentflow/LLM/LLM.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/nodes/agentflow/LLM/LLM.ts b/packages/components/nodes/agentflow/LLM/LLM.ts index cc3340283..d79bc56eb 100644 --- a/packages/components/nodes/agentflow/LLM/LLM.ts +++ b/packages/components/nodes/agentflow/LLM/LLM.ts @@ -897,7 +897,7 @@ class LLM_Agentflow implements INode { if (isStructuredOutput && typeof response === 'object') { const structuredOutput = response as Record for (const key in structuredOutput) { - if (structuredOutput[key]) { + if (structuredOutput[key] !== undefined && structuredOutput[key] !== null) { output[key] = structuredOutput[key] } }