Skip to content

Commit 147f18d

Browse files
fix(format): line breaks
1 parent 347e851 commit 147f18d

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎src/askui/models/ui_tars_ep/ui_tars_api.py‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ def act(
248248
]
249249
self.execute_act(self.act_history, computer_tool)
250250

251-
def add_screenshot_to_history(self, message_history: list[dict[str, Any]], computer_tool: Tool) -> None:
251+
def add_screenshot_to_history(
252+
self, message_history: list[dict[str, Any]], computer_tool: Tool
253+
) -> None:
252254
screenshot = computer_tool(action="screenshot")
253255
message_history.append(
254256
{
@@ -308,7 +310,9 @@ def filter_message_thread(
308310

309311
return filtered_messages
310312

311-
def execute_act(self, message_history: list[dict[str, Any]], computer_tool: Tool) -> None:
313+
def execute_act(
314+
self, message_history: list[dict[str, Any]], computer_tool: Tool
315+
) -> None:
312316
message_history = self.filter_message_thread(message_history)
313317

314318
chat_completion = self._client.chat.completions.create(
@@ -341,7 +345,9 @@ def execute_act(self, message_history: list[dict[str, Any]], computer_tool: Tool
341345

342346
action = message.parsed_action
343347
if action.action_type == "click":
344-
computer_tool(action="mouse_move", coordinate=(action.start_box.x, action.start_box.y))
348+
computer_tool(
349+
action="mouse_move", coordinate=(action.start_box.x, action.start_box.y)
350+
)
345351
computer_tool(action="left_click")
346352
time.sleep(1)
347353
if action.action_type == "type":

0 commit comments

Comments
 (0)