docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "This evaluation assesses how well the engineer uses the Bowser package to retrieve and preserve original User-Agent strings. The focus is on proper usage of Bowser's parsing API (Bowser.getParser() or Bowser.parse()) and the getUA() method to access the original unmodified User-Agent string.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Parser initialization",
"description": "Uses Bowser.getParser() or Bowser.parse() to initialize a parser instance with the User-Agent string in both extractUserAgent and validateUserAgent functions",
"max_score": 25
},
{
"name": "Browser name extraction",
"description": "Uses getBrowserName() method from the parser instance to extract the browser name in the extractUserAgent function",
"max_score": 15
},
{
"name": "Browser version extraction",
"description": "Uses getBrowserVersion() method from the parser instance to extract the browser version in the extractUserAgent function",
"max_score": 15
},
{
"name": "Original UA retrieval",
"description": "Uses getUA() method from the parser instance to retrieve the original unmodified User-Agent string in both functions",
"max_score": 30
},
{
"name": "Validation logic",
"description": "Implements validation in validateUserAgent by checking if the parser can successfully extract browser information (e.g., checking if getBrowserName() or getBrowser() returns valid data)",
"max_score": 15
}
]
}