fix anthropic key action parser (#2266)
This commit is contained in:
@@ -499,8 +499,8 @@ async def parse_anthropic_actions(
|
|||||||
)
|
)
|
||||||
idx += 1
|
idx += 1
|
||||||
continue
|
continue
|
||||||
text = text.capitalize()
|
|
||||||
response = f"Press keys: {text}"
|
response = f"Press keys: {text}"
|
||||||
|
keys = text.split("+")
|
||||||
hold = action == "hold_key"
|
hold = action == "hold_key"
|
||||||
duration = tool_call_input.get("duration", 0)
|
duration = tool_call_input.get("duration", 0)
|
||||||
if hold:
|
if hold:
|
||||||
@@ -509,7 +509,7 @@ async def parse_anthropic_actions(
|
|||||||
actions.append(
|
actions.append(
|
||||||
KeypressAction(
|
KeypressAction(
|
||||||
element_id="",
|
element_id="",
|
||||||
keys=[text],
|
keys=keys,
|
||||||
hold=hold,
|
hold=hold,
|
||||||
duration=duration,
|
duration=duration,
|
||||||
reasoning=reasoning,
|
reasoning=reasoning,
|
||||||
|
|||||||
Reference in New Issue
Block a user