MCPcopy Create free account
hub / github.com/OpenBMB/AgentCPM-GUI / __init__

Method __init__

eval/utils/evaluator.py:154–168  ·  view source on GitHub ↗
(self, save_dir, eval_android_control=False)

Source from the content-addressed store, hash-verified

152class ActionEvaluator(object):
153
154 def __init__(self, save_dir, eval_android_control=False) -> None:
155 self.save_dir = save_dir
156 # compatible with aitz evaluator
157 self.demo_mode = "COA"
158 self.screen_mode = "txt"
159
160 self._aitz_action_type_ = ActionType
161 self._stop_status = [
162 "finish",
163 "satisfied",
164 "impossible",
165 "interrupt",
166 "need_feedback"
167 ]
168 self.eval_android_control = eval_android_control
169
170 def action_map(self, action_api: dict):
171 action = action_api.get('ACTION', None)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected