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

Method set_args

webarena/browser_env/html_tools/html_parser.py:89–103  ·  view source on GitHub ↗
(self, use_position: bool=False, window_size: tuple=(), rect_dict: dict[str]={}, label_attr: str='', 
                 id_attr: str='', keep_attrs: list[str]=[], keep_elem: list[str]=[], obs_elem: list[str]=[], 
                 parent_chain: bool=False, get_new_label: bool=False, dataset: str='')

Source from the content-addressed store, hash-verified

87 self.identifier = IdentifierTool(label_method, self.used_labels)
88
89 def set_args(self, use_position: bool=False, window_size: tuple=(), rect_dict: dict[str]={}, label_attr: str='',
90 id_attr: str='', keep_attrs: list[str]=[], keep_elem: list[str]=[], obs_elem: list[str]=[],
91 parent_chain: bool=False, get_new_label: bool=False, dataset: str='') -> None:
92
93 self.use_position = use_position
94 self.window_size = window_size
95 self.rect = rect_dict
96 self.label_attr = label_attr
97 self.id_attr = id_attr
98 self.keep_attrs = keep_attrs
99 self.keep = keep_elem
100 self.obs = obs_elem
101 self.parent_chain = parent_chain
102 self.get_new_label = get_new_label
103 self.dataset = dataset
104
105 def get_config(self):
106 config = {

Callers 1

parse_argsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected