We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3e1792 commit 6569fb1Copy full SHA for 6569fb1
src/agentlab/analyze/agent_xray.py
@@ -531,9 +531,17 @@ def wrapper(*args, **kwargs):
531
532
533
def tag_screenshot_with_action(screenshot: Image, action: str) -> Image:
534
- """If action is a coordinate action, try to render it on the screenshot.
+ """
535
+ If action is a coordinate action, try to render it on the screenshot.
536
537
e.g. mouse_click(120, 130) -> draw a dot at (120, 130) on the screenshot
538
+
539
+ Args:
540
+ screenshot: The screenshot to tag.
541
+ action: The action to tag the screenshot with.
542
543
+ Returns:
544
+ The tagged screenshot.
545
"""
546
if action.startswith("mouse_click"):
547
coords = action[action.index("(") + 1 : action.index(")")].split(",")
0 commit comments