MCPcopy Create free account
hub / github.com/OthersideAI/self-operating-computer / parse_eval_content

Function parse_eval_content

evaluate.py:74–85  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

72
73
74def parse_eval_content(content):
75 try:
76 res = json.loads(content)
77
78 print(res["reason"])
79
80 return res["guideline_met"]
81 except:
82 print(
83 "The model gave a bad evaluation response and it couldn't be parsed. Exiting..."
84 )
85 exit(1)
86
87
88def evaluate_final_screenshot(guideline):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected