File tree Expand file tree Collapse file tree
flow_agents/execution_agent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636from agents .matmaster_agent .locales import i18n
3737from agents .matmaster_agent .logger import PrefixFilter
3838from agents .matmaster_agent .prompt import MatMasterCheckTransferPrompt
39- from agents .matmaster_agent .state import PLAN , STEP_DESCRIPTION
39+ from agents .matmaster_agent .state import PLAN , STEP_DESCRIPTION , StepKey
4040from agents .matmaster_agent .sub_agents .mapping import (
4141 MatMasterSubAgentsEnum ,
4242)
@@ -289,10 +289,10 @@ async def _prepare_retry_failed_result(
289289 )
290290 # 在重试时更新步骤描述,包含校验失败的原因
291291 original_description = ctx .session .state [PLAN ]['steps' ][index ][
292- 'description'
292+ StepKey . STEP_DESCRIPTION
293293 ]
294294 update_plan ['steps' ][index ][
295- 'description'
295+ StepKey . STEP_DESCRIPTION
296296 ] = f"{ original_description } \n \n 注意:上次执行因以下原因校验失败,请改进:{ validation_reason } "
297297 else :
298298 logger .info (
Original file line number Diff line number Diff line change 1919
2020class StateKey (StrEnum ):
2121 pass
22+
23+
24+ class StepKey (StrEnum ):
25+ STEP_DESCRIPTION = 'step_description'
You can’t perform that action at this time.
0 commit comments