tessl install tessl/pypi-sqlmodel@0.0.0SQLModel, SQL databases in Python, designed for simplicity, compatibility, and robustness.
Agent Success
Agent success rate when using this tile
85%
Improvement
Agent success rate improvement when using this tile compared to baseline
1x
Baseline
Agent success rate without this tile
85%
{
"context": "This evaluation assesses how well the engineer uses SQLModel's polymorphic inheritance features to create a single-table inheritance hierarchy for different employee types. The focus is on proper configuration of the base model and subclasses using SQLModel's polymorphic mechanisms.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Base model configuration",
"description": "The base Employee model is properly configured with __mapper_args__ containing 'polymorphic_on' pointing to a discriminator column (e.g., 'type' or 'employee_type') and 'polymorphic_identity' set for the base class. The model must inherit from SQLModel with table=True.",
"max_score": 25
},
{
"name": "Discriminator column definition",
"description": "A discriminator field is properly defined in the base Employee model using Field() to store the employee type. This field should be a string column that SQLModel uses to determine which subclass to instantiate when querying.",
"max_score": 15
},
{
"name": "Subclass polymorphic identity",
"description": "Both Engineer and Manager subclasses are properly configured with __mapper_args__ containing 'polymorphic_identity' with unique string values (e.g., 'engineer' and 'manager') that match the discriminator column values.",
"max_score": 20
},
{
"name": "Subclass inheritance structure",
"description": "Engineer and Manager classes properly inherit from the base Employee class and define their specific fields (programming_language for Engineer, department for Manager) without redundant table=True parameters.",
"max_score": 15
},
{
"name": "Polymorphic query usage",
"description": "Uses select() with the appropriate model class to perform polymorphic queries: select(Employee) returns all employee types as their proper subclass instances, select(Engineer) returns only Engineer instances, and select(Manager) returns only Manager instances.",
"max_score": 15
},
{
"name": "Session and CRUD",
"description": "Properly uses Session context manager with session.add(), session.commit(), and session.exec() to create and query employee records. Creates the database tables using SQLModel.metadata.create_all(engine).",
"max_score": 10
}
]
}