Fix: ignored agentflow LLM structuredOutput keys (#4982)
Fix: ignored structuredOutput keys
This commit is contained in:
parent
46816c7c1e
commit
498129e9d2
|
|
@ -897,7 +897,7 @@ class LLM_Agentflow implements INode {
|
||||||
if (isStructuredOutput && typeof response === 'object') {
|
if (isStructuredOutput && typeof response === 'object') {
|
||||||
const structuredOutput = response as Record<string, any>
|
const structuredOutput = response as Record<string, any>
|
||||||
for (const key in structuredOutput) {
|
for (const key in structuredOutput) {
|
||||||
if (structuredOutput[key]) {
|
if (structuredOutput[key] !== undefined && structuredOutput[key] !== null) {
|
||||||
output[key] = structuredOutput[key]
|
output[key] = structuredOutput[key]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue