@@ -372,7 +372,7 @@ def prepare_simulation():
372372 1. 检查是否已有完成的准备工作
373373 2. 从Zep图谱读取并过滤实体
374374 3. 为每个实体生成OASIS Agent Profile(带重试机制)
375- 4. LLM智能生成模拟配置 (带重试机制)
375+ 4. LLM智能生成Simulation configuration (带重试机制)
376376 5. 保存配置文件和预设脚本
377377
378378 请求(JSON):
@@ -484,7 +484,7 @@ def prepare_simulation():
484484 logger .info (f"预期实体数量: { filtered_preview .filtered_count } , 类型: { filtered_preview .entity_types } " )
485485 except Exception as e :
486486 logger .warning (f"同步获取实体数量失败(将在后台任务中重试): { e } " )
487- # 失败不影响后续流程 ,后台任务会重新获取
487+ # Failed不影响后续流程 ,后台任务会重新获取
488488
489489 # 创建异步任务
490490 task_manager = TaskManager ()
@@ -530,7 +530,7 @@ def progress_callback(stage, progress, message, **kwargs):
530530 stage_names = {
531531 "reading" : "读取图谱实体" ,
532532 "generating_profiles" : "生成Agent人设" ,
533- "generating_config" : "生成模拟配置 " ,
533+ "generating_config" : "生成Simulation configuration " ,
534534 "copying_scripts" : "准备模拟脚本"
535535 }
536536
@@ -749,7 +749,7 @@ def get_prepare_status():
749749
750750@simulation_bp .route ('/<simulation_id>' , methods = ['GET' ])
751751def get_simulation (simulation_id : str ):
752- """获取模拟状态 """
752+ """Get simulation status """
753753 try :
754754 manager = SimulationManager ()
755755 state = manager .get_simulation (simulation_id )
@@ -772,7 +772,7 @@ def get_simulation(simulation_id: str):
772772 })
773773
774774 except Exception as e :
775- logger .error (f"获取模拟状态失败 : { str (e )} " )
775+ logger .error (f"Get simulation status失败 : { str (e )} " )
776776 return jsonify ({
777777 "success" : False ,
778778 "error" : str (e ),
@@ -914,7 +914,7 @@ def get_simulation_history():
914914 for sim in simulations :
915915 sim_dict = sim .to_dict ()
916916
917- # 获取模拟配置信息 (从 simulation_config.json 读取 simulation_requirement)
917+ # 获取Simulation configuration信息 (从 simulation_config.json 读取 simulation_requirement)
918918 config = manager .get_simulation_config (sim .simulation_id )
919919 if config :
920920 sim_dict ["simulation_requirement" ] = config .get ("simulation_requirement" , "" )
@@ -1133,7 +1133,7 @@ def get_simulation_profiles_realtime(simulation_id: str):
11331133@simulation_bp .route ('/<simulation_id>/config/realtime' , methods = ['GET' ])
11341134def get_simulation_config_realtime (simulation_id : str ):
11351135 """
1136- 实时获取模拟配置 (用于在生成过程中实时查看进度)
1136+ 实时获取Simulation configuration (用于在生成过程中实时查看进度)
11371137
11381138 与 /config 接口的区别:
11391139 - 直接读取文件,不经过 SimulationManager
@@ -1253,7 +1253,7 @@ def get_simulation_config_realtime(simulation_id: str):
12531253@simulation_bp .route ('/<simulation_id>/config' , methods = ['GET' ])
12541254def get_simulation_config (simulation_id : str ):
12551255 """
1256- 获取模拟配置 (LLM智能生成的完整配置)
1256+ 获取Simulation configuration (LLM智能生成的完整配置)
12571257
12581258 返回包含:
12591259 - time_config: 时间配置(模拟时长、轮次、高峰/低谷时段)
@@ -1269,7 +1269,7 @@ def get_simulation_config(simulation_id: str):
12691269 if not config :
12701270 return jsonify ({
12711271 "success" : False ,
1272- "error" : f"模拟配置不存在 ,请先调用 /prepare 接口"
1272+ "error" : f"Simulation configuration不存在 ,请先调用 /prepare 接口"
12731273 }), 404
12741274
12751275 return jsonify ({
@@ -1288,7 +1288,7 @@ def get_simulation_config(simulation_id: str):
12881288
12891289@simulation_bp .route ('/<simulation_id>/config/download' , methods = ['GET' ])
12901290def download_simulation_config (simulation_id : str ):
1291- """下载模拟配置文件 """
1291+ """下载Simulation configuration文件 """
12921292 try :
12931293 manager = SimulationManager ()
12941294 sim_dir = manager ._get_simulation_dir (simulation_id )
@@ -1550,7 +1550,7 @@ def start_simulation():
15501550 try :
15511551 SimulationRunner .stop_simulation (simulation_id )
15521552 except Exception as e :
1553- logger .warning (f"停止模拟时出现警告 : { str (e )} " )
1553+ logger .warning (f"Stop simulation时出现警告 : { str (e )} " )
15541554 else :
15551555 return jsonify ({
15561556 "success" : False ,
@@ -1595,7 +1595,7 @@ def start_simulation():
15951595
15961596 logger .info (f"启用图谱记忆更新: simulation_id={ simulation_id } , graph_id={ graph_id } " )
15971597
1598- # 启动模拟
1598+ # Start simulation
15991599 run_state = SimulationRunner .start_simulation (
16001600 simulation_id = simulation_id ,
16011601 platform = platform ,
@@ -1628,7 +1628,7 @@ def start_simulation():
16281628 }), 400
16291629
16301630 except Exception as e :
1631- logger .error (f"启动模拟失败 : { str (e )} " )
1631+ logger .error (f"Start simulation失败 : { str (e )} " )
16321632 return jsonify ({
16331633 "success" : False ,
16341634 "error" : str (e ),
@@ -1639,7 +1639,7 @@ def start_simulation():
16391639@simulation_bp .route ('/stop' , methods = ['POST' ])
16401640def stop_simulation ():
16411641 """
1642- 停止模拟
1642+ Stop simulation
16431643
16441644 请求(JSON):
16451645 {
@@ -1687,7 +1687,7 @@ def stop_simulation():
16871687 }), 400
16881688
16891689 except Exception as e :
1690- logger .error (f"停止模拟失败 : { str (e )} " )
1690+ logger .error (f"Stop simulation失败 : { str (e )} " )
16911691 return jsonify ({
16921692 "success" : False ,
16931693 "error" : str (e ),
0 commit comments