Fix: ignored agentflow LLM structuredOutput keys (#4982)

Fix: ignored structuredOutput keys
This commit is contained in:
russelj1
2025-07-30 15:28:33 +01:00
committed by GitHub
parent 46816c7c1e
commit 498129e9d2
@@ -897,7 +897,7 @@ class LLM_Agentflow implements INode {
if (isStructuredOutput && typeof response === 'object') {
const structuredOutput = response as Record<string, any>
for (const key in structuredOutput) {
if (structuredOutput[key]) {
if (structuredOutput[key] !== undefined && structuredOutput[key] !== null) {
output[key] = structuredOutput[key]
}
}