mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-02 14:45:17 +02:00
delete type.
This commit is contained in:
parent
ec07513caf
commit
b69f2be165
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue