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

Method get_config

webarena/browser_env/html_tools/html_parser.py:105–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

103 self.dataset = dataset
104
105 def get_config(self):
106 config = {
107 'id_attr': self.id_attr,
108 'keep_attrs': self.keep_attrs[:5],
109 'label_attr': self.label_attr,
110 'use_position': self.use_position,
111 'window_size': self.window_size,
112 'rect': dict(list(self.rect.items())[:3]),
113 'keep_elem': self.keep[:5],
114 'obs_elem': self.obs[:5],
115 'parent_chain': self.parent_chain,
116 'prompt_name': self.prompt.name,
117 'identifier_name': self.identifier.name
118 }
119
120 return config, config_meta.format(**config)
121
122 def update_rect_dict(self, rect_dict: dict[str]={}) -> None:
123 self.rect = rect_dict

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected