Skip to content

Conversation

@TataKKKL
Copy link
Member

@TataKKKL TataKKKL commented Apr 4, 2025

new websocket endpoint: new-tree-search-ws

2025-04-03 23:07:20,908 - __main__ - INFO - Starting tree search WebSocket test
2025-04-03 23:07:20,908 - __main__ - INFO - WebSocket URL: ws://localhost:3000/tree-search-ws
2025-04-03 23:07:20,908 - __main__ - INFO - Starting URL: http://128.105.145.205:7770/
2025-04-03 23:07:20,908 - __main__ - INFO - Goal: search running shoes, click on the first result
2025-04-03 23:07:20,908 - __main__ - INFO - Algorithm: lats
2025-04-03 23:07:20,908 - __main__ - INFO - Max depth: 3
2025-04-03 23:07:20,908 - __main__ - INFO - Connecting to WebSocket at ws://localhost:3000/tree-search-ws
2025-04-03 23:07:20,920 - __main__ - INFO - Connected to WebSocket
2025-04-03 23:07:20,921 - __main__ - INFO - Connection established with ID: 4547986192
2025-04-03 23:07:20,921 - __main__ - INFO - Sending search request: {'type': 'start_search', 'agent_type': 'LATSAgent', 'starting_url': 'http://128.105.145.205:7770/', 'goal': 'search running shoes, click on the first result', 'search_algorithm': 'lats', 'max_depth': 3}
2025-04-03 23:07:20,921 - __main__ - INFO - Status update: initializing - Initializing search agent
2025-04-03 23:07:20,921 - __main__ - INFO - Status update: setting_up - Setting up playwright browser
2025-04-03 23:07:33,614 - __main__ - INFO - Status update: running - Search agent initialized, starting search
2025-04-03 23:07:33,614 - __main__ - INFO - Received message of type search_status
2025-04-03 23:07:33,614 - __main__ - INFO - Message: {'type': 'search_status', 'status': 'started', 'message': 'Starting LATS search', 'timestamp': '2025-04-04T06:07:33.613578'}
2025-04-03 23:07:33,614 - __main__ - INFO - Received message of type iteration_start
2025-04-03 23:07:33,614 - __main__ - INFO - Message: {'type': 'iteration_start', 'iteration': 1, 'timestamp': '2025-04-04T06:07:33.613639'}
2025-04-03 23:07:33,614 - __main__ - INFO - Received message of type step_start
2025-04-03 23:07:33,614 - __main__ - INFO - Message: {'type': 'step_start', 'step': 'selection', 'iteration': 1, 'timestamp': '2025-04-04T06:07:33.613685'}
2025-04-03 23:07:33,614 - __main__ - INFO - Received message of type step_start
2025-04-03 23:07:33,614 - __main__ - INFO - Message: {'type': 'step_start', 'step': 'expansion', 'iteration': 1, 'timestamp': '2025-04-04T06:07:33.613758'}
2025-04-03 23:07:33,614 - __main__ - INFO - Received message of type node_expanding
2025-04-03 23:07:33,614 - __main__ - INFO - Message: {'type': 'node_expanding', 'node_id': 5275438160, 'timestamp': '2025-04-04T06:07:33.613802'}
2025-04-03 23:08:28,181 - __main__ - INFO - Received message of type node_created
2025-04-03 23:08:28,181 - __main__ - INFO - Message: {'type': 'node_created', 'node_id': 5267895760, 'parent_id': 5275438160, 'action': "fill('218', 'running shoes')", 'description': "fill the search box with the term 'running shoes'", 'timestamp': '2025-04-04T06:08:28.180986'}
2025-04-03 23:10:29,007 - __main__ - INFO - Tree update received with 0 nodes
2025-04-03 23:10:29,095 - __main__ - ERROR - Error: Error during search: 'dict' object has no attribute 'action'
2025-04-03 23:10:29,096 - __main__ - INFO - Test completed
(venv) danqingzhang@Danqings-MBP visual-tree-search-backend % python test/test-tree-search-ws-lats.py
2025-04-03 23:12:04,274 - __main__ - INFO - Starting tree search WebSocket test
2025-04-03 23:12:04,274 - __main__ - INFO - WebSocket URL: ws://localhost:3000/tree-search-ws
2025-04-03 23:12:04,274 - __main__ - INFO - Starting URL: http://128.105.145.205:7770/
2025-04-03 23:12:04,274 - __main__ - INFO - Goal: search running shoes, click on the first result
2025-04-03 23:12:04,274 - __main__ - INFO - Algorithm: lats
2025-04-03 23:12:04,274 - __main__ - INFO - Max depth: 3
2025-04-03 23:12:04,274 - __main__ - INFO - Connecting to WebSocket at ws://localhost:3000/tree-search-ws
2025-04-03 23:12:04,287 - __main__ - INFO - Connected to WebSocket
2025-04-03 23:12:04,287 - __main__ - INFO - Connection established with ID: 4837136464
2025-04-03 23:12:04,287 - __main__ - INFO - Sending search request: {'type': 'start_search', 'agent_type': 'LATSAgent', 'starting_url': 'http://128.105.145.205:7770/', 'goal': 'search running shoes, click on the first result', 'search_algorithm': 'lats', 'max_depth': 3}
2025-04-03 23:12:04,288 - __main__ - INFO - Status update: initializing - Initializing search agent
2025-04-03 23:12:04,288 - __main__ - INFO - Status update: setting_up - Setting up playwright browser
2025-04-03 23:12:16,655 - __main__ - INFO - Status update: running - Search agent initialized, starting search
2025-04-03 23:12:16,656 - __main__ - INFO - Received message of type search_status
2025-04-03 23:12:16,656 - __main__ - INFO - Message: {'type': 'search_status', 'status': 'started', 'message': 'Starting LATS search', 'timestamp': '2025-04-04T06:12:16.655679'}
2025-04-03 23:12:16,656 - __main__ - INFO - Received message of type iteration_start
2025-04-03 23:12:16,656 - __main__ - INFO - Message: {'type': 'iteration_start', 'iteration': 1, 'timestamp': '2025-04-04T06:12:16.655727'}
2025-04-03 23:12:16,656 - __main__ - INFO - Received message of type step_start
2025-04-03 23:12:16,656 - __main__ - INFO - Message: {'type': 'step_start', 'step': 'selection', 'iteration': 1, 'timestamp': '2025-04-04T06:12:16.655798'}
2025-04-03 23:12:16,656 - __main__ - INFO - Received message of type step_start
2025-04-03 23:12:16,656 - __main__ - INFO - Message: {'type': 'step_start', 'step': 'expansion', 'iteration': 1, 'timestamp': '2025-04-04T06:12:16.655865'}
2025-04-03 23:12:16,656 - __main__ - INFO - Received message of type node_expanding
2025-04-03 23:12:16,656 - __main__ - INFO - Message: {'type': 'node_expanding', 'node_id': 5169573264, 'timestamp': '2025-04-04T06:12:16.655906'}
2025-04-03 23:13:08,993 - __main__ - INFO - Received message of type node_created
2025-04-03 23:13:08,993 - __main__ - INFO - Message: {'type': 'node_created', 'node_id': 4851309520, 'parent_id': 5169573264, 'action': "fill('223', 'running shoes')", 'description': "fill the search bar with the text 'running shoes'", 'timestamp': '2025-04-04T06:13:08.992951'}
2025-04-03 23:15:09,209 - __main__ - INFO - Search complete: partial_success, score=0.0, path length=3
2025-04-03 23:15:09,209 - __main__ - INFO - Path actions:
2025-04-03 23:15:09,209 - __main__ - INFO -   1. fill('223', 'running shoes')
2025-04-03 23:15:09,209 - __main__ - INFO -   2. click('381')
2025-04-03 23:15:09,209 - __main__ - INFO -   3. click('1504')
2025-04-03 23:15:09,210 - __main__ - INFO - Test completed
(venv) danqingzhang@Danqings-MBP visual-tree-search-backend % 
(venv) danqingzhang@Danqings-MBP visual-tree-search-backend % python test/test-tree-search-ws-lats.py
2025-04-03 23:31:27,551 - __main__ - INFO - Starting tree search WebSocket test
2025-04-03 23:31:27,551 - __main__ - INFO - WebSocket URL: ws://localhost:3000/new-tree-search-ws
2025-04-03 23:31:27,551 - __main__ - INFO - Starting URL: http://128.105.145.205:7770/
2025-04-03 23:31:27,551 - __main__ - INFO - Goal: search running shoes, click on the first result
2025-04-03 23:31:27,552 - __main__ - INFO - Algorithm: lats
2025-04-03 23:31:27,552 - __main__ - INFO - Max depth: 3
2025-04-03 23:31:27,552 - __main__ - INFO - Connecting to WebSocket at ws://localhost:3000/new-tree-search-ws
2025-04-03 23:31:27,565 - __main__ - INFO - Connected to WebSocket
2025-04-03 23:31:27,565 - __main__ - INFO - Connection established with ID: 4713160080
2025-04-03 23:31:27,565 - __main__ - INFO - Sending search request: {'type': 'start_search', 'agent_type': 'LATSAgent', 'starting_url': 'http://128.105.145.205:7770/', 'goal': 'search running shoes, click on the first result', 'search_algorithm': 'lats', 'max_depth': 3}
2025-04-03 23:31:27,566 - __main__ - INFO - Status update: initializing - Initializing search agent
2025-04-03 23:31:27,566 - __main__ - INFO - Status update: setting_up - Setting up playwright browser
2025-04-03 23:31:41,588 - __main__ - INFO - Status update: running - Search agent initialized, starting search
2025-04-03 23:31:41,588 - __main__ - INFO - Received message of type search_status
2025-04-03 23:31:41,588 - __main__ - INFO - Message: {'type': 'search_status', 'status': 'started', 'message': 'Starting LATS search', 'timestamp': '2025-04-04T06:31:41.588239'}
2025-04-03 23:31:41,588 - __main__ - INFO - Received message of type iteration_start
2025-04-03 23:31:41,588 - __main__ - INFO - Message: {'type': 'iteration_start', 'iteration': 1, 'timestamp': '2025-04-04T06:31:41.588312'}
2025-04-03 23:31:41,588 - __main__ - INFO - Received message of type step_start
2025-04-03 23:31:41,588 - __main__ - INFO - Message: {'type': 'step_start', 'step': 'selection', 'iteration': 1, 'timestamp': '2025-04-04T06:31:41.588358'}
2025-04-03 23:31:41,589 - __main__ - INFO - Received message of type step_start
2025-04-03 23:31:41,589 - __main__ - INFO - Message: {'type': 'step_start', 'step': 'expansion', 'iteration': 1, 'timestamp': '2025-04-04T06:31:41.588411'}
2025-04-03 23:31:41,589 - __main__ - INFO - Received message of type node_expanding
2025-04-03 23:31:41,589 - __main__ - INFO - Message: {'type': 'node_expanding', 'node_id': 4771964816, 'timestamp': '2025-04-04T06:31:41.588450'}
2025-04-03 23:34:32,669 - __main__ - INFO - Received message of type node_created
2025-04-03 23:34:32,669 - __main__ - INFO - Message: {'type': 'node_created', 'node_id': 4716315280, 'parent_id': 4771964816, 'action': "fill('233', 'running shoes')", 'description': "type 'running shoes' into the search box", 'timestamp': '2025-04-04T06:34:32.668707'}
2025-04-03 23:34:32,669 - __main__ - INFO - Received message of type node_created
2025-04-03 23:34:32,669 - __main__ - INFO - Message: {'type': 'node_created', 'node_id': 5083759888, 'parent_id': 4771964816, 'action': "click('454')", 'description': 'click the Sports & Outdoors menu item to search for running shoes', 'timestamp': '2025-04-04T06:34:32.668856'}
2025-04-03 23:34:32,669 - __main__ - INFO - Received message of type node_created
2025-04-03 23:34:32,669 - __main__ - INFO - Message: {'type': 'node_created', 'node_id': 4739663568, 'parent_id': 4771964816, 'action': "click('216')", 'description': 'click the Cart button to view items in the cart', 'timestamp': '2025-04-04T06:34:32.668901'}
2025-04-03 23:34:32,669 - __main__ - INFO - Received message of type node_created
2025-04-03 23:34:32,669 - __main__ - INFO - Message: {'type': 'node_created', 'node_id': 4476347984, 'parent_id': 4771964816, 'action': "click('488')", 'description': "click on the 'Clothing, Shoes & Jewelry' menu item to search for running shoes.", 'timestamp': '2025-04-04T06:34:32.668939'}
2025-04-03 23:36:55,328 - __main__ - INFO - Tree update received with 0 nodes
2025-04-03 23:36:55,435 - __main__ - INFO - Search complete: partial_success, score=0.5, path length=1
2025-04-03 23:36:55,435 - __main__ - INFO - Path actions:
2025-04-03 23:36:55,435 - __main__ - INFO -   1. fill('233', 'running shoes')
2025-04-03 23:36:55,436 - __main__ - INFO - Test completed

@vercel
Copy link

vercel bot commented Apr 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visual-tree-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 4, 2025 6:38am

@TataKKKL TataKKKL merged commit 2df5493 into main Apr 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants