File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88os .environ ["FASTMCP_EXPERIMENTAL_ENABLE_NEW_OPENAPI_PARSER" ] = "true"
99
10- from .agent import ComputerAgent
10+ from .agent import ComputerAgent , VisionAgent
1111from .agent_base import Agent
1212from .agent_settings import AgentSettings
1313from .locators import Locator
4747from .utils .source_utils import InputSource
4848
4949try :
50- from .android_agent import AndroidAgent
50+ from .android_agent import AndroidAgent , AndroidVisionAgent
5151
5252 _ANDROID_AGENT_AVAILABLE = True
5353except ImportError :
6666__all__ = [
6767 "Agent" ,
6868 "ComputerAgent" ,
69+ "VisionAgent" ,
6970 "AgentSettings" ,
7071 "ActSettings" ,
7172 "Base64ImageSourceParam" ,
104105]
105106
106107if _ANDROID_AGENT_AVAILABLE :
107- __all__ += ["AndroidAgent" ]
108+ __all__ += ["AndroidAgent" , "AndroidVisionAgent" ]
108109
109110if _WEB_AGENTS_AVAILABLE :
110111 __all__ += ["WebVisionAgent" , "WebTestingAgent" ]
Original file line number Diff line number Diff line change 11import logging
2+ import warnings
23from typing import Annotated , Literal , Optional
34
45from pydantic import ConfigDict , Field , validate_call
@@ -501,3 +502,13 @@ def cli(
501502 "ComputerAgent received instruction to execute '%s' on cli" , command
502503 )
503504 self .tools .os .run_command (command )
505+
506+
507+ class VisionAgent (ComputerAgent ):
508+ def __init__ (self , * args , ** kwargs ) -> None : # type: ignore
509+ warnings .warn (
510+ "VisionAgent is deprecated, use ComputerAgent instead." ,
511+ DeprecationWarning ,
512+ stacklevel = 2 ,
513+ )
514+ super ().__init__ (* args , ** kwargs )
Original file line number Diff line number Diff line change 11import logging
2+ import warnings
23from typing import Annotated , overload
34
45from pydantic import ConfigDict , Field , validate_call
@@ -352,3 +353,13 @@ def set_device_by_serial_number(
352353 f"set_device_by_serial_number(device_sn='{ device_sn } ')" ,
353354 )
354355 self .os .set_device_by_serial_number (device_sn )
356+
357+
358+ class AndroidVisionAgent (AndroidAgent ):
359+ def __init__ (self , * args , ** kwargs ) -> None : # type: ignore
360+ warnings .warn (
361+ "AndroidVisionAgent is deprecated, use AndroidAgent instead." ,
362+ DeprecationWarning ,
363+ stacklevel = 2 ,
364+ )
365+ super ().__init__ (* args , ** kwargs )
You can’t perform that action at this time.
0 commit comments