Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def handle_action(self, action: types.FunctionCall) -> FunctionResponseT:
elif action.name == "type_text_at":
x = self.denormalize_x(action.args["x"])
y = self.denormalize_y(action.args["y"])
press_enter = action.args.get("press_enter", False)
press_enter = action.args.get("press_enter", True)
clear_before_typing = action.args.get("clear_before_typing", True)
return self._browser_computer.type_text_at(
x=x,
Expand Down
2 changes: 1 addition & 1 deletion test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_handle_action_type_text_at(self):
action = types.FunctionCall(name="type_text_at", args={"x": 100, "y": 200, "text": "hello"})
self.agent.handle_action(action)
self.mock_browser_computer.type_text_at.assert_called_once_with(
x=100, y=200, text="hello", press_enter=False, clear_before_typing=True
x=100, y=200, text="hello", press_enter=True, clear_before_typing=True
)

def test_handle_action_scroll_document(self):
Expand Down