You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/askui/computer_agent.py
+21-21Lines changed: 21 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -17,13 +17,13 @@
17
17
create_computer_agent_prompt,
18
18
)
19
19
fromaskui.tools.computerimport (
20
-
ComputerGetActiveAgentOsServerTool,
20
+
ComputerGetCurrentComputerTargetIdTool,
21
21
ComputerGetMousePositionTool,
22
22
ComputerGetSystemInfoTool,
23
23
ComputerKeyboardPressedTool,
24
24
ComputerKeyboardReleaseTool,
25
25
ComputerKeyboardTapTool,
26
-
ComputerListAgentOsServersTool,
26
+
ComputerListAgentOsTargetComputersTool,
27
27
ComputerListDisplaysTool,
28
28
ComputerMouseClickTool,
29
29
ComputerMouseHoldDownTool,
@@ -33,15 +33,15 @@
33
33
ComputerRetrieveActiveDisplayTool,
34
34
ComputerScreenshotTool,
35
35
ComputerSetActiveDisplayTool,
36
-
ComputerSwitchAgentOsServerTool,
36
+
ComputerSwitchAgentOsTargetComputerTool,
37
37
ComputerTypeTool,
38
38
)
39
39
fromaskui.tools.exception_toolimportExceptionTool
40
40
41
41
from .reportingimportCompositeReporter, Reporter
42
42
from .retryimportRetry
43
43
from .toolsimportAgentToolbox, ComputerAgentOsFacade, ModifierKey, PcKey
44
-
from .tools.askuiimportAgentOsServer, AskUiControllerClient
44
+
from .tools.askuiimportAgentOsTargetComputer, AskUiControllerClient
45
45
46
46
logger=logging.getLogger(__name__)
47
47
@@ -54,23 +54,23 @@ class ComputerAgent(Agent):
54
54
It uses computer vision models to locate UI elements and execute actions on them.
55
55
56
56
A single `ComputerAgent` can drive **one or more machines** through the
57
-
`agent_os_servers` argument. Each entry is an Agent OS server (local
57
+
`agent_os_target_computers` argument. Each entry is an Agent OS server (local
58
58
subprocess or remote gRPC endpoint) identified by a stable `computer_id`.
59
59
At any moment one server is *active* and receives all explicit calls
60
60
(`click`, `type`, `keyboard`, ...). The active server can be changed at
61
-
runtime via `agent.tools.os.switch_agent_os_server(computer_id)` or
61
+
runtime via `agent.tools.os.switch_agent_os_target_computer(computer_id)` or
62
62
scoped to a block using `agent.tools.os.temporary_select(computer_id)`.
63
63
The `act()` model is also given list/switch/get-active tools so it can
64
64
orchestrate work across machines on its own (e.g. read something on one
65
65
computer and re-enter it on another).
66
66
67
67
Args:
68
-
display (int, optional): The display number to use for screen interactions on the default local server. Ignored when `agent_os_servers` is provided. Defaults to `1`.
68
+
display (int, optional): The display number to use for screen interactions on the default local server. Ignored when `agent_os_target_computers` is provided. Defaults to `1`.
69
69
reporters (list[Reporter] | None, optional): List of reporter instances for logging and reporting. If `None`, an empty list is used.
0 commit comments