MCPcopy Create free account
hub / github.com/THUDM/AutoWebGLM / __init__

Method __init__

webarena/browser_env/processors.py:829–844  ·  view source on GitHub ↗
(
        self,
        main_observation_type: str,
        text_observation_type: str,
        image_observation_type: str,
        current_viewport_only: bool,
        viewport_size: ViewportSize,
    )

Source from the content-addressed store, hash-verified

827 """Main entry point to access all observation processor"""
828
829 def __init__(
830 self,
831 main_observation_type: str,
832 text_observation_type: str,
833 image_observation_type: str,
834 current_viewport_only: bool,
835 viewport_size: ViewportSize,
836 ) -> None:
837 self.main_observation_type = main_observation_type
838 self.text_processor = TextObervationProcessor(
839 text_observation_type, current_viewport_only, viewport_size
840 )
841 self.image_processor = ImageObservationProcessor(
842 image_observation_type
843 )
844 self.viewport_size = viewport_size
845
846 def get_observation_space(self) -> spaces.Dict:
847 text_space = spaces.Text(

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected