Skip to content

Commit f041e64

Browse files
Merge pull request #242 from ServiceNow/tlsdc/xray_coords_tagging
fix coords tagging in agent_xray.py
2 parents 02f195e + 4ae4acf commit f041e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agentlab/analyze/agent_xray.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def tag_screenshot_with_action(screenshot: Image, action: str) -> Image:
550550
try:
551551
coords = action[action.index("(") + 1 : action.index(")")].split(",")
552552
coords = [c.strip() for c in coords]
553-
if len(coords) != 2:
553+
if len(coords) not in [2, 3]:
554554
raise ValueError(f"Invalid coordinate format: {coords}")
555555
if coords[0].startswith("x="):
556556
coords[0] = coords[0][2:]

0 commit comments

Comments
 (0)