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}`);