Function toSpanAnnotationData
toSpanAnnotationData( annotation: SpanAnnotation,): { annotator_kind: "LLM" | "CODE" | "HUMAN"; identifier?: string; metadata?: null | { [key: string]: unknown }; name: string; result?: | null | { explanation?: null | string; label?: null | string; score?: null | number; }; span_id: string;} Returns {
annotator_kind: "LLM" | "CODE" | "HUMAN";
identifier?: string;
metadata?: null | { [key: string]: unknown };
name: string;
result?:
| null
| {
explanation?: null
| string;
label?: null | string;
score?: null | number;
};
span_id: string;
}
annotator_kind: "LLM" | "CODE" | "HUMAN"
Optional
identifier?: string
Optional
metadata?: null | { [key: string]: unknown }
name: string
Optional
result?:
| null
| {
explanation?: null
| string;
label?: null | string;
score?: null | number;
}
span_id: string
Convert a SpanAnnotation to the API format