/** * Trajectory format adapters. * * The internal trajectory model is simple and owned by us. These adapters * provide interoperability with external trace formats without coupling * the core to any specific schema that isn't an established standard. */ import type { Trajectory } from "./types.js"; export interface OpenInferenceSpan { traceId: string; spanId: string; parentSpanId?: string; name: string; kind: "AGENT" | "LLM" | "TOOL" | "CHAIN" | "EVALUATOR" | "GUARDRAIL" | "RETRIEVER" | "PROMPT"; startTime: Date; endTime: Date; status: "OK" | "ERROR" | "UNSET"; attributes: Record; children: OpenInferenceSpan[]; } /** Convert our trajectory to OpenInference OTel spans for visualization */ export declare function toOpenInference(_trajectory: Trajectory): OpenInferenceSpan[]; /** Consume existing OTel traces without re-executing */ export declare function fromOpenInference(_spans: OpenInferenceSpan[]): Trajectory; //# sourceMappingURL=adapters.d.ts.map