tessl install tessl/pypi-hishel@0.1.0Persistent cache implementation for httpx and httpcore following RFC 9111 specification
Agent Success
Agent success rate when using this tile
74%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.48x
Baseline
Agent success rate without this tile
50%
{
"context": "This criteria evaluates the engineer's proficiency in using hishel's CacheOptions configuration, specifically the shared/private cache mode, supported_methods customization, and allow_stale settings. The evaluation focuses exclusively on correct usage of hishel's API for configuring different caching policies.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import CacheOptions",
"description": "Correctly imports CacheOptions or equivalent configuration class from hishel package.",
"max_score": 10
},
{
"name": "Shared cache configuration",
"description": "Correctly configures shared=True in CacheOptions for the public cache implementation (create_public_cache function).",
"max_score": 15
},
{
"name": "Private cache configuration",
"description": "Correctly configures shared=False in CacheOptions for both private cache implementations (create_private_user_cache and create_search_cache functions).",
"max_score": 15
},
{
"name": "Default methods restriction",
"description": "Public cache uses default supported_methods (GET and HEAD only) or explicitly specifies ['GET', 'HEAD'] in CacheOptions.",
"max_score": 10
},
{
"name": "POST method inclusion",
"description": "Private user cache correctly includes POST in supported_methods by specifying ['GET', 'HEAD', 'POST'] or equivalent in CacheOptions.",
"max_score": 15
},
{
"name": "Search cache POST support",
"description": "Search cache correctly configures supported_methods to include POST method (e.g., ['GET', 'HEAD', 'POST'] or ['POST']) in CacheOptions.",
"max_score": 10
},
{
"name": "Stale content prevention",
"description": "Public cache correctly sets allow_stale=False in CacheOptions to prevent serving stale responses without revalidation.",
"max_score": 10
},
{
"name": "Allow stale configuration",
"description": "Private user cache correctly sets allow_stale=True in CacheOptions to allow serving stale responses when the server is unavailable.",
"max_score": 15
},
{
"name": "Cache object integration",
"description": "Each function returns an appropriately configured cache object (e.g., AsyncCacheClient, SyncCacheClient, or equivalent) that integrates the CacheOptions configuration correctly.",
"max_score": 10
}
]
}