🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
delete type.
刘棒棒b69f2be165a2
diff --git a/metagpt/actions/execute_code.py b/metagpt/actions/execute_code.pyindex 1a97e49d6..fb0ecd893 100644--- a/metagpt/actions/execute_code.py+++ b/metagpt/actions/execute_code.py@@ -227,7 +227,7 @@ class ExecutePyCode(ExecuteCode, Action):return code, True-def truncate(result: str, keep_len: int = 2000, is_success: bool = True) -> str | bool:+def truncate(result: str, keep_len: int = 2000, is_success: bool = True):desc = f"Executed code {'successfully' if is_success else 'failed, please reflect the cause of bug and then debug'}"if is_success:desc += f"Truncated to show only {keep_len} characters\n"