tessl install tessl/pypi-requests-cache@1.2.0A persistent cache for python requests
Agent Success
Agent success rate when using this tile
76%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.27x
Baseline
Agent success rate without this tile
60%
{
"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
}
]
}