@arizeai/phoenix-client
Version:
A client for the Phoenix API
24 lines • 840 B
TypeScript
import type { paths } from "../__generated__/api/v1.js";
import type { Annotation } from "../types/annotations.js";
type TraceAnnotationData = paths["/v1/trace_annotations"]["post"]["requestBody"]["content"]["application/json"]["data"][0];
/**
* Parameters for a single trace annotation
*/
export interface TraceAnnotation extends Annotation {
/**
* The OpenTelemetry Trace ID (hex format without 0x prefix)
*/
traceId: string;
/**
* The kind of annotator used for the annotation
* Can be "HUMAN", "LLM", or "CODE"
* @default "HUMAN"
*/
annotatorKind?: TraceAnnotationData["annotator_kind"];
}
/**
* Convert a TraceAnnotation to the API format
*/
export declare function toTraceAnnotationData(annotation: TraceAnnotation): TraceAnnotationData;
export {};
//# sourceMappingURL=types.d.ts.map