Skip to content

Commit 7355cba

Browse files
Merge pull request #272 from askui/fix/chars-per-minute
fix: incorrect typing speed unit of computer type tool
2 parents de61dbf + eb5a351 commit 7355cba

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/askui/tools/agent_os.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def type(self, text: str, typing_speed: int = 50) -> None:
296296
Args:
297297
text (str): The text to be typed.
298298
typing_speed (int, optional): The speed of typing in characters per
299-
minute. Defaults to `50`.
299+
second. Defaults to `50`.
300300
"""
301301
raise NotImplementedError
302302

src/askui/tools/computer/type_tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self, agent_os: AgentOs | None = None) -> None:
1919
"typing_speed": {
2020
"type": "integer",
2121
"description": (
22-
"The speed of typing in characters per minute."
22+
"The speed of typing in characters per second."
2323
" Defaults to 50"
2424
),
2525
"default": 50,
@@ -35,5 +35,5 @@ def __call__(self, text: str, typing_speed: int = 50) -> str:
3535
self.agent_os.type(text, typing_speed)
3636
return (
3737
f"Text was typed: {text} with typing speed: "
38-
f" {typing_speed} characters per minute."
38+
f" {typing_speed} characters per second."
3939
)

0 commit comments

Comments
 (0)