File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ async function dumpResult() {
129129  let  showResult  =  false ; 
130130  const  agentName  =  process . env [ "LLM_AGENT_NAME" ] . toUpperCase ( ) . replace ( / - / g,  '_' ) ; 
131131  const  agentEnvName  =  `LLM_AGENT_DUMP_RESULT_${ agentName }  ; 
132-   const  agentEnvValue  =  process . env [ agentEnvName ] ; 
132+   const  agentEnvValue  =  process . env [ agentEnvName ]   ||   process . env [ "LLM_AGENT_DUMP_RESULT" ] ; 
133133
134134  const  funcName  =  process . env [ "LLM_AGENT_FUNC" ] . toUpperCase ( ) . replace ( / - / g,  '_' ) ; 
135135  const  funcEnvName  =  `${ agentEnvName } ${ funcName }  ; 
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ def dump_result():
100100    show_result  =  False 
101101    agent_name  =  os .environ ["LLM_AGENT_NAME" ].upper ().replace ("-" , "_" )
102102    agent_env_name  =  f"LLM_AGENT_DUMP_RESULT_{ agent_name }  
103-     agent_env_value  =  os .getenv (agent_env_name )
103+     agent_env_value  =  os .getenv (agent_env_name ,  os . getenv ( "LLM_AGENT_DUMP_RESULT" ) )
104104
105105    func_name  =  os .environ ["LLM_AGENT_FUNC" ].upper ().replace ("-" , "_" )
106106    func_env_name  =  f"{ agent_env_name } { func_name }  
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ dump_result() {
104104
105105    local  agent_env_name agent_env_value func_env_name func_env_value show_result=0
106106    agent_env_name=" LLM_AGENT_DUMP_RESULT_$( echo " $LLM_AGENT_NAME " |  tr ' [:lower:]' ' [:upper:]' |  tr ' -' ' _' ) " 
107-     agent_env_value=" ${! agent_env_name} " 
107+     agent_env_value=" ${! agent_env_name:- " $LLM_AGENT_DUMP_RESULT "  " 
108108    func_env_name=" ${agent_env_name} _$( echo " $LLM_AGENT_FUNC " |  tr ' [:lower:]' ' [:upper:]' |  tr ' -' ' _' ) " 
109109    func_env_value=" ${! func_env_name} " 
110110    if  [[ " $agent_env_value " ==  " 1" ||  " $agent_env_value " ==  " true" ;  then 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments