Skip to content

Commit 6886d1f

Browse files
committed
Add key option to static web browser
1 parent 0f751f9 commit 6886d1f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llmstack/processors/providers/promptly/static_web_browser.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class BrowserInstructionType(StrEnum):
3636
SCROLLX = "Scrollx"
3737
SCROLLY = "Scrolly"
3838
MOUSE_MOVE = "Mousemove"
39+
KEY = "Key"
3940

4041

4142
class BrowserInstruction(BaseModel):
@@ -216,6 +217,8 @@ def _web_browser_instruction_to_command(self, instruction: BrowserInstruction) -
216217
instruction_type = WebBrowserCommandType.TYPE
217218
elif instruction.type == BrowserInstructionType.MOUSE_MOVE.value:
218219
instruction_type = WebBrowserCommandType.MOUSE_MOVE
220+
elif instruction.type == BrowserInstructionType.KEY.value:
221+
instruction_type = WebBrowserCommandType.KEY
219222

220223
return WebBrowserCommand(
221224
command_type=instruction_type, data=(instruction.data or ""), selector=(instruction.selector or "")

0 commit comments

Comments
 (0)