aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/run-agent.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run-agent.js')
-rwxr-xr-xscripts/run-agent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/run-agent.js b/scripts/run-agent.js
index 3b176fe..7add1e2 100755
--- a/scripts/run-agent.js
+++ b/scripts/run-agent.js
@@ -129,7 +129,7 @@ async function dumpResult() {
let showResult = false;
const agentName = process.env["LLM_AGENT_NAME"].toUpperCase().replace(/-/g, '_');
const agentEnvName = `LLM_AGENT_DUMP_RESULT_${agentName}`;
- const agentEnvValue = process.env[agentEnvName];
+ const agentEnvValue = process.env[agentEnvName] || process.env["LLM_AGENT_DUMP_RESULT"];
const funcName = process.env["LLM_AGENT_FUNC"].toUpperCase().replace(/-/g, '_');
const funcEnvName = `${agentEnvName}_${funcName}`;