import { AmplitudeAI } from "../client.js"; //#region src/integrations/openai-agents.d.ts interface TracingProcessorOptions { amplitudeAI: AmplitudeAI; userId?: string; sessionId?: string; traceId?: string; agentId?: string; parentAgentId?: string; env?: string; } /** * Tracing processor for the OpenAI Agents SDK. * * A processor is typically registered once per process, so identity is * resolved per span — constructor options, then the active session context, * then the identity already seen for the same agent trace — and never * captured at construction. Traces with no identity get an anonymous * per-trace session and device ID. */ declare class AmplitudeTracingProcessor { private _ai; private _explicitTraceId; private _identities; constructor(options: TracingProcessorOptions); onSpanStart(span: Record): void; onTraceStart(trace: Record): void; onTraceEnd(trace: Record): void; onSpanEnd(span: Record): void; shutdown(): void; private _handleGeneration; private _handleFunction; private _inferKind; private _getSpanData; private _rawTraceId; private _getTraceId; private _getLatencyMs; private _safeNumber; private _normalizeMessagesArray; private _extractAssistantText; private _extractToolCalls; } //#endregion export { AmplitudeTracingProcessor, TracingProcessorOptions }; //# sourceMappingURL=openai-agents.d.ts.map