Skip to content

Commit 64fc0f9

Browse files
committed
finishing testing lats agent websocket
1 parent 6be89b8 commit 64fc0f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

visual-tree-search-backend/app/api/lwats/agents_async/SimpleSearchAgents/lats_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ async def run(self, websocket=None) -> list[LATSNode]:
121121
"type": "search_complete",
122122
"status": "success" if best_node.reward == 1 else "partial_success",
123123
"score": best_node.reward,
124-
"path": [{"id": id(node), "action": node.action} for node in best_node.get_trajectory()],
124+
"path": best_node.get_trajectory(),
125125
"timestamp": datetime.utcnow().isoformat()
126126
})
127127

visual-tree-search-backend/app/api/routes/tree_search_websocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async def handle_search_request(websocket: WebSocket, message: Dict[str, Any]):
127127
# Use the agent's built-in WebSocket-enabled DFS method
128128
await agent.dfs_with_websocket(websocket)
129129
elif search_algorithm.lower() == "lats":
130-
await agent.lats_search(websocket)
130+
await agent.run(websocket)
131131
else:
132132
await websocket.send_json({
133133
"type": "error",

0 commit comments

Comments
 (0)