Merge branch 'fixbug_reply_on_corresponding_lanaguge' into 'mgx_ops'

解决了文档目标路径为文件夹的问题,解决了teamleader 不进行任何操作直接结束的问题,优化了智能体不响应新任务的问题。

See merge request pub/MetaGPT!279
This commit is contained in:
林义章 2024-08-06 12:34:34 +00:00
commit fa06a67a64
8 changed files with 15 additions and 11 deletions

View file

@ -382,10 +382,10 @@ class RoleZero(Role):
tool_output = await tool_obj(**cmd["args"])
if len(tool_output) <= 10:
command_output += (
f"\n[command]: {cmd['args']['cmd']} \n [command output] : {tool_output} (pay attention to this.)"
f"\n[command]: {cmd['args']['cmd']} \n[command output] : {tool_output} (pay attention to this.)"
)
else:
command_output += f"\n[command]: {cmd['args']['cmd']} \n [command output] : {tool_output}"
command_output += f"\n[command]: {cmd['args']['cmd']} \n[command output] : {tool_output}"
return command_output
def _get_plan_status(self) -> Tuple[str, str]: