A persistent cache for python requests
76
Pending
Does it follow best practices?
Impact
76%
1.26xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "This criteria evaluates how well the engineer uses requests-cache's cache filtering and deletion capabilities to identify and remove invalid cached responses. The focus is on using the appropriate methods for detecting deserialization failures and selectively removing corrupted entries while preserving valid ones.",
"type": "weighted_checklist",
"checklist": [
{
"name": "CachedSession Usage",
"description": "Uses requests_cache.CachedSession or install_cache() to create a cached HTTP session for making requests that will be stored in the cache",
"max_score": 15
},
{
"name": "Filter Invalid Responses",
"description": "Uses the filter() method with 'invalid' parameter to identify cached responses that have deserialization errors (e.g., session.cache.filter(invalid=True))",
"max_score": 30
},
{
"name": "Delete Invalid Entries",
"description": "Uses the delete() method to remove invalid cached responses from the cache (e.g., session.cache.delete(invalid=True) or iterating through filtered results and deleting them)",
"max_score": 30
},
{
"name": "Distinguish Response Types",
"description": "Correctly distinguishes between valid, expired, and invalid cached responses using filter() with appropriate parameters (valid=True, expired=True, invalid=True)",
"max_score": 15
},
{
"name": "Verify Cache State",
"description": "Uses cache inspection methods to verify the cache state before and after cleanup (e.g., counting entries, checking urls(), or using contains())",
"max_score": 10
}
]
}evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10