import type { Attributes, GenerationEvent } from "../types.js"; /** * Build OTEL span attributes following the GenAI semantic conventions. * Langfuse auto-detects these as LLM generations. * * Maps {@link GenerationEvent} fields to standard `gen_ai.*` keys (model, * provider, token counts, stop reason) and Skaile-specific `skaile.generation.*` * keys (duration, cost, prompt preview). Only defined fields are included in * the returned map — undefined optional fields are omitted. * * @param gen - The generation event to convert to OTEL attributes. * @returns A flat {@link Attributes} map ready to pass to `otelSpan.setAttributes()`. * @see https://opentelemetry.io/docs/specs/semconv/gen-ai/ * @docLink packages/telemetry/concepts#otel-telemetry-provider */ export declare function generationAttributes(gen: GenerationEvent): Attributes; //# sourceMappingURL=gen-ai.d.ts.map