Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions os_computer_use/sandbox_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def run_background_command(self, command):

@tool(
description="Send a key or combination of keys to the system.",
params={"name": "Key or combination (e.g. 'Return', 'Ctl-C')"},
params={"name": "Key or combination (e.g. 'Return', 'Ctrl-C')"},
)
def send_key(self, name):
self.sandbox.press(name)
Expand All @@ -121,7 +121,7 @@ def click_element(self, query, click_command, action_name="click"):
position = grounding_model.call(query, self.latest_screenshot)
dot_image = draw_big_dot(Image.open(self.latest_screenshot), position)
filepath = self.save_image(dot_image, "location")
logger.log(f"{action_name} {filepath})", "gray")
logger.log(f"{action_name} {filepath}", "gray")

x, y = position
self.sandbox.move_mouse(x, y)
Expand Down