From 1f45a9ee3490cd629090ef1644ff127aa38a2b48 Mon Sep 17 00:00:00 2001 From: Sean Hatfield Date: Mon, 24 Nov 2025 09:31:00 -0800 Subject: [PATCH] Fix undefined result in llm-instruction agent flow executor (#4676) fix typo in llm-instruction agent flow executor --- server/utils/agentFlows/executors/llm-instruction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/agentFlows/executors/llm-instruction.js b/server/utils/agentFlows/executors/llm-instruction.js index 4c4b0d3b6..d7e4e57fa 100644 --- a/server/utils/agentFlows/executors/llm-instruction.js +++ b/server/utils/agentFlows/executors/llm-instruction.js @@ -33,7 +33,7 @@ async function executeLLMInstruction(config, context) { introspect(`Successfully received LLM response`); if (resultVariable) config.resultVariable = resultVariable; - return completion.result; + return completion.textResponse; } catch (error) { logger(`LLM processing failed: ${error.message}`, error); throw new Error(`LLM processing failed: ${error.message}`);