Rubric class
Rubric represents evaluation criteria for skills.
Rubrics define how skill outputs should be evaluated.
Constructors
-
Rubric({required String rubricId, required String workspaceId, required String name, required String description, String version = '1.0.0', List<
RubricDimension> dimensions = const [], Map<String, double> weights = const {}, Map<String, dynamic> thresholds = const {}, String? policyBinding, RubricStatus status = RubricStatus.active, required DateTime createdAt, required DateTime updatedAt, Map<String, dynamic> metadata = const {}}) -
const
-
Rubric.fromJson(Map<
String, dynamic> json) -
factory
Properties
- createdAt → DateTime
-
When rubric was created.
final
- description → String
-
Rubric description.
final
-
dimensions
→ List<
RubricDimension> -
Evaluation dimensions.
final
- hasDimensions → bool
-
Check if rubric has dimensions defined.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- isActive → bool
-
Check if rubric is active.
no setter
-
metadata
→ Map<
String, dynamic> -
Additional metadata.
final
- name → String
-
Rubric name.
final
- policyBinding → String?
-
Policy binding reference (policy ID string).
Reference: Design Section 2.16.4 - policyBinding.
final
- rubricId → String
-
Unique rubric identifier.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → RubricStatus
-
Rubric status.
final
-
thresholds
→ Map<
String, dynamic> -
Pass/fail/grade boundaries.
Reference: Design Section 2.16.4 - thresholds.
final
- updatedAt → DateTime
-
When rubric was last updated.
final
- version → String
-
Rubric version.
final
-
weights
→ Map<
String, double> -
Dimension weights (dimensionId -> weight, sum = 1.0).
Reference: Design Section 2.16.4 - weights.
final
- workspaceId → String
-
Workspace identifier for multi-tenant isolation.
final
Methods
-
copyWith(
{String? rubricId, String? workspaceId, String? name, String? description, String? version, List< RubricDimension> ? dimensions, Map<String, double> ? weights, Map<String, dynamic> ? thresholds, String? policyBinding, RubricStatus? status, DateTime? createdAt, DateTime? updatedAt, Map<String, dynamic> ? metadata}) → Rubric -
dimensionsByMeasurementType(
MeasurementType type) → List< RubricDimension> - Get dimensions for a specific measurement type.
-
getDimension(
String dimensionId) → RubricDimension? - Get dimension by ID.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override