Implementation of dependency injection for Python 3
Overall
score
92%
{
"context": "This evaluation assesses how effectively the engineer uses rodi's function execution with dependency injection capabilities, specifically focusing on the provider.exec() method and provider.get_executor() function for executing functions with auto-injected parameters.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses provider.exec()",
"description": "Uses the provider.exec() method to execute handler functions with automatically injected dependencies",
"max_score": 40
},
{
"name": "Handles sync/async",
"description": "Correctly handles both synchronous and asynchronous handler functions using provider.exec() which supports both",
"max_score": 20
},
{
"name": "Type hint resolution",
"description": "Leverages rodi's automatic parameter resolution from function signature type hints - handlers use type-annotated parameters that get automatically resolved",
"max_score": 25
},
{
"name": "Provider initialization",
"description": "Properly accepts and uses a rodi Services provider instance in the EventManager constructor",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-rodidocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10