Fix undefined result in llm-instruction agent flow executor (#4676)

fix typo in llm-instruction agent flow executor
This commit is contained in:
Sean Hatfield
2025-11-24 09:31:00 -08:00
committed by GitHub
parent 3b4f07cdbd
commit 1f45a9ee34

View File

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