Skip to content

Commit ace3e41

Browse files
committed
update
1 parent 30bc57b commit ace3e41

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/agentlab/agents/vl_agent/vl_prompt/ui_prompt.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def __init__(
104104
logs_limit: int = 5,
105105
):
106106
text = """\
107-
# The error from the last action
107+
# The error caused by the last action
108108
"""
109109
if logs_separator in last_action_error:
110110
error, logs = last_action_error.split(logs_separator)
@@ -136,10 +136,9 @@ def __init__(
136136
Here are all the actions you can take to interact with the browser. \
137137
They are Python functions based on the Playwright library.
138138
{action_set_description}
139-
# The format requirements for the answer
139+
# The format of the answer
140140
Think about the action to take, and choose it from the action space. \
141-
Your answer should include both the thought and the action. \
142-
Your answer should only include one thought and one action.
141+
Your answer should include one thought and one action.
143142
"""
144143
if use_abstract_example:
145144
text += """\
@@ -157,8 +156,7 @@ def __init__(
157156
<thought>
158157
The goal is to click on the numbers in ascending order. \
159158
The smallest number visible on the screen is '1'. \
160-
Based on the screenshot, '1' is located in the top-left quadrant of the white area. \
161-
I will use the 'mouse_click' action to directly click on the visible '1' by specifying its coordinates.
159+
I will use the 'mouse_click' action to directly click on the number '1'.
162160
</thought>
163161
<action>
164162
mouse_click(50, 50)

0 commit comments

Comments
 (0)