remove the constraint on max_response_size in appworld_react_agent.py

This commit is contained in:
zouyingcao 2025-12-15 18:11:43 +08:00 • committed by GitHub
parent 2ab7dc0267
commit 5798df3c4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -186,9 +186,9 @@ class AppworldReactAgent:
self.history[run_id][task_index].append({"role": "assistant", "content": code})
output = world.execute(code)
if len(output) > self.max_response_size:
# logger.warning(f"output exceed max size={len(output)}")
output = output[: self.max_response_size]
# if len(output) > self.max_response_size:
# # logger.warning(f"output exceed max size={len(output)}")
# output = output[: self.max_response_size]
self.history[run_id][task_index].append({"role": "user", "content": "Output:\n```\n" + output + "```\n\n"})
if world.task_completed():