Skip to content

Commit bbf9fea

Browse files
committed
refactor: create agent history file based on agent_<ID>
1 parent 36649f3 commit bbf9fea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ async def run_custom_agent(
364364
)
365365
history = await agent.run(max_steps=max_steps)
366366

367-
history_file = os.path.join(save_agent_history_path, "AgentHistory.json")
367+
history_file = os.path.join(save_agent_history_path, f"{agent.agent_id}.json")
368368
agent.save_history(history_file)
369369

370370
final_result = history.final_result()

0 commit comments

Comments
 (0)