From 2d27f9bd7b8558353dff25534e38bfc243310235 Mon Sep 17 00:00:00 2001 From: yi xiang Date: Thu, 24 Apr 2025 14:04:17 -0400 Subject: [PATCH 1/3] Fix the bug to enable the demo_mode --- src/agentlab/ui_assistant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agentlab/ui_assistant.py b/src/agentlab/ui_assistant.py index 57916543..07ad9f3f 100644 --- a/src/agentlab/ui_assistant.py +++ b/src/agentlab/ui_assistant.py @@ -9,7 +9,7 @@ def make_exp_args(agent_args: AgentArgs, start_url="https://www.google.com"): try: - agent_args.flags.action.demo_mode = "default" + agent_args.flags.action.action_set.demo_mode = "default" except AttributeError: pass From 9e85d8883fb34997286fe86530eb1985605359f5 Mon Sep 17 00:00:00 2001 From: Thibault LSDC <78021491+TLSDC@users.noreply.github.com> Date: Thu, 24 Apr 2025 14:56:36 -0400 Subject: [PATCH 2/3] Improved typing --- src/agentlab/ui_assistant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agentlab/ui_assistant.py b/src/agentlab/ui_assistant.py index 07ad9f3f..36769bd9 100644 --- a/src/agentlab/ui_assistant.py +++ b/src/agentlab/ui_assistant.py @@ -7,7 +7,7 @@ from agentlab.experiments.loop import EnvArgs, ExpArgs -def make_exp_args(agent_args: AgentArgs, start_url="https://www.google.com"): +def make_exp_args(agent_args: GenericAgentArgs, start_url="https://www.google.com"): try: agent_args.flags.action.action_set.demo_mode = "default" except AttributeError: From b58f8bcdab8863fa5553271cb823196c2b71a3f7 Mon Sep 17 00:00:00 2001 From: Thibault LSDC <78021491+TLSDC@users.noreply.github.com> Date: Thu, 24 Apr 2025 15:10:57 -0400 Subject: [PATCH 3/3] Fixing test --- tests/test_ui_assistant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ui_assistant.py b/tests/test_ui_assistant.py index 8b3a6511..85d0fcd8 100644 --- a/tests/test_ui_assistant.py +++ b/tests/test_ui_assistant.py @@ -6,4 +6,4 @@ def test_make_exp_args(): """Basic unit test to detect refactoring errors.""" exp_args = make_exp_args(AGENT_4o) - assert exp_args.agent_args.flags.action.demo_mode == "default" + assert exp_args.agent_args.flags.action.action_set.demo_mode == "default"