fix: Simplify click position extraction for screenshot crosshair in tool execution

This commit is contained in:
Showdown76 2025-05-19 13:43:04 +02:00
parent 158529a2bd
commit 20764d5d19

View File

@ -73,12 +73,7 @@ class AIProcessor:
print('ERROR NEXT STEPS IS STR, ', nextsteps)
if tc.function.name == "click_button":
# extract click position for screenshot crosshair
click_positions.extend(tuple( # button_type, x, y
map(int,(ags.get("x", 0),
ags.get("y", 0)
)
)
))
click_positions.append((ags.get("x", 0), ags.get("y", 0)))
r = ai.compute._execute(
name=tc.function.name,
args=json.loads(tc.function.arguments),