Skip to content

Commit 3a7c446

Browse files
committed
to span annotation dict
1 parent 1371f70 commit 3a7c446

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/phoenix/server/api/mutations/dataset_mutations.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -607,12 +607,12 @@ def _gather_span_annotations_by_name(
607607
if span_annotation.name not in span_annotations_by_name:
608608
span_annotations_by_name[span_annotation.name] = []
609609
span_annotations_by_name[span_annotation.name].append(
610-
_serialize_span_annotation(span_annotation)
610+
_to_span_annotation_dict(span_annotation)
611611
)
612612
return span_annotations_by_name
613613

614614

615-
def _serialize_span_annotation(span_annotation: models.SpanAnnotation) -> dict[str, Any]:
615+
def _to_span_annotation_dict(span_annotation: models.SpanAnnotation) -> dict[str, Any]:
616616
return {
617617
"label": span_annotation.label,
618618
"score": span_annotation.score,

0 commit comments

Comments
 (0)