12 lines
444 B
Python
12 lines
444 B
Python
import json
|
|
from hermes_tools import browser_navigate, browser_vision
|
|
|
|
def review_pr():
|
|
analysis = browser_vision(
|
|
question="Compare the two provided screenshots of the UI. Does the 'After' match the design spec? List all discrepancies. Provide a PASS/FAIL."
|
|
)
|
|
return {"status": "PASS" if "PASS" in analysis.upper() else "FAIL", "analysis": analysis}
|
|
|
|
if __name__ == '__main__':
|
|
print(json.dumps(review_pr(), indent=2))
|