Skip to content

Commit 307446e

Browse files
black
1 parent 9861ca5 commit 307446e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/agentlab/agents/tool_use_agent/cua_like_agent.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
from agentlab.utils.hinting import HintsSource
3131

3232

33-
3433
logger = logging.getLogger(__name__)
3534
logger.setLevel(logging.INFO)
3635

@@ -84,7 +83,6 @@
8483
def action_from_generalized_bgym_action_tool(
8584
response: LLMOutput, tool_name: str = "perform_action"
8685
) -> tuple[str | None, str | None]:
87-
8886
"""Extract the action string from the tool call in the LLM response."""
8987
action, think = None, None
9088
if response.tool_calls is not None:
@@ -284,7 +282,6 @@ def apply(
284282
discussion, obs["last_action"], self._last_observation
285283
)
286284

287-
288285
obs_msg.add_image(image_to_png_base64_url(screenshot))
289286
if self.use_axtree:
290287
obs_msg.add_text(f"AXTree:\n{AXTREE_NOTE}\n{obs['axtree_txt']}")
@@ -685,8 +682,8 @@ def get_action(self, obs: Any) -> float:
685682
action_subsets=("coord",),
686683
keep_last_n_obs=5, # max 20 no more than 20 screenshots for claude
687684
multiaction=True,
688-
use_noop_as_default_action = False,
689-
use_generalized_bgym_action_tool = True
685+
use_noop_as_default_action=False,
686+
use_generalized_bgym_action_tool=True,
690687
)
691688

692689

0 commit comments

Comments
 (0)