mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-10-08 03:10:24 +00:00
remove the constraint on max_response_size in appworld_react_agent.py
This commit is contained in:
parent
2ab7dc0267
commit
5798df3c4d
1 changed files with 3 additions and 3 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue