tessl install tessl/npm-lightdash--common@0.2231.5Shared TypeScript library for the Lightdash platform containing common types, utilities, and business logic for analytics workflows
Agent Success
Agent success rate when using this tile
72%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.09x
Baseline
Agent success rate without this tile
66%
{
"context": "This criteria evaluates how well the engineer uses @lightdash/common's MetricQuery type system and related structures to build a query construction system. The focus is on proper use of MetricQuery structure, Filters (AND/OR groups), SortField, AdditionalMetric, CustomDimension, and TableCalculation types as defined in @lightdash/common.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Query Structure",
"description": "Implementation creates Query objects with the correct structure matching @lightdash/common's MetricQuery type: exploreName (string), dimensions (string array), metrics (string array), filters (Filters object), sorts (Sort array), limit (number), tableCalculations (array), with optional additionalMetrics and customDimensions arrays.",
"max_score": 20
},
{
"name": "Filter Groups",
"description": "Implementation correctly structures dimension filters using FilterGroup objects with 'and' or 'or' arrays containing FilterRule objects. Each FilterRule has id, target: { fieldId }, operator, and optional values array, matching @lightdash/common's Filters type with nested groups.",
"max_score": 25
},
{
"name": "Sort Configuration",
"description": "Implementation creates Sort objects with fieldId (string) and descending (boolean) properties, matching @lightdash/common's SortField type structure.",
"max_score": 10
},
{
"name": "Additional Metrics",
"description": "Implementation creates AdditionalMetric objects with name, sql, table, and type properties, matching @lightdash/common's AdditionalMetric interface. The type field should accept aggregation type strings like 'sum', 'count', 'average'.",
"max_score": 15
},
{
"name": "Custom Dimensions",
"description": "Implementation creates CustomDimension objects with id, name, type, table, and binning properties (dimensionId, binType, binNumber), matching @lightdash/common's CustomBinDimension interface structure.",
"max_score": 15
},
{
"name": "Table Calculations",
"description": "Implementation creates TableCalculation objects with name, displayName, and sql properties, matching @lightdash/common's TableCalculation type structure.",
"max_score": 15
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
scenario-11
scenario-12
scenario-13
scenario-14
scenario-15
scenario-16
scenario-17
scenario-18
scenario-19
scenario-20