We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1371f70 commit 3a7c446Copy full SHA for 3a7c446
src/phoenix/server/api/mutations/dataset_mutations.py
@@ -607,12 +607,12 @@ def _gather_span_annotations_by_name(
607
if span_annotation.name not in span_annotations_by_name:
608
span_annotations_by_name[span_annotation.name] = []
609
span_annotations_by_name[span_annotation.name].append(
610
- _serialize_span_annotation(span_annotation)
+ _to_span_annotation_dict(span_annotation)
611
)
612
return span_annotations_by_name
613
614
615
-def _serialize_span_annotation(span_annotation: models.SpanAnnotation) -> dict[str, Any]:
+def _to_span_annotation_dict(span_annotation: models.SpanAnnotation) -> dict[str, Any]:
616
return {
617
"label": span_annotation.label,
618
"score": span_annotation.score,
0 commit comments