fix: Simplify click position extraction for screenshot crosshair in tool execution
This commit is contained in:
parent
158529a2bd
commit
20764d5d19
@ -73,12 +73,7 @@ class AIProcessor:
|
|||||||
print('ERROR NEXT STEPS IS STR, ', nextsteps)
|
print('ERROR NEXT STEPS IS STR, ', nextsteps)
|
||||||
if tc.function.name == "click_button":
|
if tc.function.name == "click_button":
|
||||||
# extract click position for screenshot crosshair
|
# extract click position for screenshot crosshair
|
||||||
click_positions.extend(tuple( # button_type, x, y
|
click_positions.append((ags.get("x", 0), ags.get("y", 0)))
|
||||||
map(int,(ags.get("x", 0),
|
|
||||||
ags.get("y", 0)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
))
|
|
||||||
r = ai.compute._execute(
|
r = ai.compute._execute(
|
||||||
name=tc.function.name,
|
name=tc.function.name,
|
||||||
args=json.loads(tc.function.arguments),
|
args=json.loads(tc.function.arguments),
|
||||||
|
Loading…
Reference in New Issue
Block a user