@arizeai/phoenix-client
Version:
A client for the Phoenix API
19 lines • 694 B
TypeScript
import { paths } from "../__generated__/api/v1";
import { Annotation } from "../types/annotations";
type SessionAnnotationData = paths["/v1/session_annotations"]["post"]["requestBody"]["content"]["application/json"]["data"][0];
/**
* Parameters for a single session annotation
*/
export interface SessionAnnotation extends Annotation {
sessionId: string;
/**
* The entity that performed the annotation
*/
annotatorKind?: SessionAnnotationData["annotator_kind"];
}
/**
* Convert a SessionAnnotation to the API format
*/
export declare function toSessionAnnotationData(annotation: SessionAnnotation): SessionAnnotationData;
export {};
//# sourceMappingURL=types.d.ts.map