Refactor PlannerObserver and StepExecutor to Utilize I18N for Prompts

This update enhances the PlannerObserver and StepExecutor classes by integrating the I18N utility for managing prompts and messages. The system and user prompts are now retrieved from the I18N module, allowing for better localization and maintainability. Additionally, the code has been cleaned up to remove hardcoded strings, improving readability and consistency across the planning and execution processes.
This commit is contained in:
lorenzejay
2026-02-13 13:40:39 -08:00
parent fad23d804a
commit e26d3e471d

View File

@@ -236,9 +236,7 @@ class StepExecutor:
).format(step_number=step_num, result=result)
)
parts.append(
self._i18n.retrieve("planning", "step_executor_complete_step")
)
parts.append(self._i18n.retrieve("planning", "step_executor_complete_step"))
return "\n".join(parts)