@@ -249,6 +249,7 @@ class LabelRowMetadata(Formatter):
249249 """Only present if the label row is initiated or branch_name is set specifically"""
250250
251251 data_hash : str
252+ """Only present if the label row is for a child element of a group"""
252253 dataset_hash : str
253254 dataset_title : str
254255 data_title : str
@@ -277,6 +278,8 @@ class LabelRowMetadata(Formatter):
277278 audio_bit_depth : Optional [int ]
278279 audio_num_channels : Optional [int ]
279280
281+ group_hash : Optional [str ] = None
282+
280283 task_uuid : Optional [UUID ] = None
281284 priority : Optional [float ] = None
282285 """Only available for not complete tasks"""
@@ -309,6 +312,7 @@ def from_dict(cls, json_dict: Dict) -> LabelRowMetadata:
309312 created_at = created_at ,
310313 last_edited_at = last_edited_at ,
311314 data_hash = json_dict ["data_hash" ],
315+ group_hash = json_dict .get ("group_hash" , None ),
312316 dataset_hash = json_dict ["dataset_hash" ],
313317 dataset_title = json_dict ["dataset_title" ],
314318 data_title = json_dict ["data_title" ],
@@ -389,6 +393,7 @@ class LabelRowMetadataDTO(BaseDTO):
389393 """Only present if the label row is initiated or branch_name is set specifically"""
390394
391395 data_hash : str = Field (alias = "data_uuid" )
396+ group_hash : Optional [str ] = Field (default = None , alias = "group_uuid" )
392397 dataset_hash : str = Field (alias = "dataset_uuid" )
393398 dataset_title : str
394399 data_title : str
@@ -438,6 +443,7 @@ def label_row_metadata_dto_to_label_row_metadata(label_row_metadata_dto: LabelRo
438443 created_at = label_row_metadata_dto .created_at ,
439444 last_edited_at = label_row_metadata_dto .last_edited_at ,
440445 data_hash = label_row_metadata_dto .data_hash ,
446+ group_hash = label_row_metadata_dto .group_hash ,
441447 dataset_hash = label_row_metadata_dto .dataset_hash ,
442448 dataset_title = label_row_metadata_dto .dataset_title ,
443449 data_title = label_row_metadata_dto .data_title ,
0 commit comments