From 5798df3c4db22b33a0ff958f1888ed22c2e60d3c Mon Sep 17 00:00:00 2001 From: zouyingcao <57442064+zouyingcao@users.noreply.github.com> Date: Mon, 15 Dec 2025 18:11:43 +0800 Subject: [PATCH] remove the constraint on max_response_size in appworld_react_agent.py --- cookbook/appworld/appworld_react_agent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbook/appworld/appworld_react_agent.py b/cookbook/appworld/appworld_react_agent.py index 501e090b..8004ecf6 100644 --- a/cookbook/appworld/appworld_react_agent.py +++ b/cookbook/appworld/appworld_react_agent.py @@ -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():