From bbf9feac1f852ae50973e95fc2d66ed499f03b7a Mon Sep 17 00:00:00 2001 From: meshkatshb Date: Tue, 14 Jan 2025 17:22:37 +0330 Subject: [PATCH] refactor: create agent history file based on agent_ --- webui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui.py b/webui.py index 54d12bd..8ee35aa 100644 --- a/webui.py +++ b/webui.py @@ -364,7 +364,7 @@ async def run_custom_agent( ) history = await agent.run(max_steps=max_steps) - history_file = os.path.join(save_agent_history_path, "AgentHistory.json") + history_file = os.path.join(save_agent_history_path, f"{agent.agent_id}.json") agent.save_history(history_file) final_result = history.final_result()