diff --git a/gradio_ui/tools/computer.py b/gradio_ui/tools/computer.py index c1861be..1c3a98b 100644 --- a/gradio_ui/tools/computer.py +++ b/gradio_ui/tools/computer.py @@ -14,7 +14,7 @@ TYPING_DELAY_MS = 12 TYPING_GROUP_SIZE = 50 -Action = Literal[ +Action = [ "key", "type", "mouse_move", @@ -88,7 +88,7 @@ class ComputerTool(BaseAnthropicTool): async def __call__( self, *, - action: Action, + action, text: str | None = None, coordinate: tuple[int, int] | None = None, **kwargs,