Skip to content

Commit f2ea887

Browse files
add explanation for explicit conversion
1 parent bdf6339 commit f2ea887

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/askui/tools/store/computer/experimental/window_management/list_process_windows.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ def __init__(self, agent_os: AgentOs | None = None) -> None:
4646
)
4747

4848
def __call__(self, process_id: int) -> str:
49+
# the agent occassionally calls this tool with a string i/o an int
50+
# this would lead to a tool error. to prevent this, we will convert to int
51+
# manually here
4952
process_id = int(process_id)
5053
get_window_list_result = self.agent_os.get_window_list(process_id)
5154
return (

0 commit comments

Comments
 (0)