@@ -92,25 +92,7 @@ def __init__(
9292 super ().__init__ (
9393 reporter = reporter ,
9494 retry = retry ,
95- tools = [
96- ExceptionTool (),
97- ComputerGetSystemInfoTool (),
98- ComputerGetMousePositionTool (),
99- ComputerKeyboardPressedTool (),
100- ComputerKeyboardReleaseTool (),
101- ComputerKeyboardTapTool (),
102- ComputerMouseClickTool (),
103- ComputerMouseHoldDownTool (),
104- ComputerMouseReleaseTool (),
105- ComputerMouseScrollTool (),
106- ComputerMoveMouseTool (),
107- ComputerScreenshotTool (),
108- ComputerTypeTool (),
109- ComputerListDisplaysTool (),
110- ComputerRetrieveActiveDisplayTool (),
111- ComputerSetActiveDisplayTool (),
112- ]
113- + (act_tools or []),
95+ tools = self .get_default_tools () + (act_tools or []),
11496 agent_os = self .tools .os ,
11597 settings = settings ,
11698 callbacks = callbacks ,
@@ -508,6 +490,27 @@ def cli(
508490 )
509491 self .tools .os .run_command (command )
510492
493+ @staticmethod
494+ def get_default_tools () -> list [Tool ]:
495+ return [
496+ ExceptionTool (),
497+ ComputerGetSystemInfoTool (),
498+ ComputerGetMousePositionTool (),
499+ ComputerKeyboardPressedTool (),
500+ ComputerKeyboardReleaseTool (),
501+ ComputerKeyboardTapTool (),
502+ ComputerMouseClickTool (),
503+ ComputerMouseHoldDownTool (),
504+ ComputerMouseReleaseTool (),
505+ ComputerMouseScrollTool (),
506+ ComputerMoveMouseTool (),
507+ ComputerScreenshotTool (),
508+ ComputerTypeTool (),
509+ ComputerListDisplaysTool (),
510+ ComputerRetrieveActiveDisplayTool (),
511+ ComputerSetActiveDisplayTool (),
512+ ]
513+
511514
512515class VisionAgent (ComputerAgent ):
513516 def __init__ (self , * args , ** kwargs ) -> None : # type: ignore
0 commit comments