import { Response, ResponseInputItem } from 'openai/resources/responses/responses'; /** * Base abstract class for span data */ export declare abstract class SpanData { /** * Export span data as a plain object */ abstract export(): Record; /** * Type of the span data */ abstract get type(): string; } /** * Span data for agent spans */ export declare class AgentSpanData extends SpanData { name: string; handoffs: string[] | null; tools: string[] | null; outputType: string | null; constructor(name: string, handoffs?: string[] | null, tools?: string[] | null, outputType?: string | null); get type(): string; export(): Record; } /** * Span data for function spans */ export declare class FunctionSpanData extends SpanData { name: string; input: string | null; output: any | null; mcpData: Record | null; constructor(name: string, input: string | null, output: any | null, mcpData?: Record | null); get type(): string; export(): Record; } /** * Span data for generation spans */ export declare class GenerationSpanData extends SpanData { input: Array> | null; output: Array> | null; model: string | null; modelConfig: Record | null; usage: Record | null; constructor(input?: Array> | null, output?: Array> | null, model?: string | null, modelConfig?: Record | null, usage?: Record | null); get type(): string; export(): Record; } /** * Span data for response spans */ export declare class ResponseSpanData extends SpanData { response: Response | null; input: string | ResponseInputItem[] | null; constructor(response?: Response | null, input?: string | ResponseInputItem[] | null); get type(): string; export(): Record; } /** * Span data for handoff spans */ export declare class HandoffSpanData extends SpanData { fromAgent: string | null; toAgent: string | null; constructor(fromAgent: string | null, toAgent: string | null); get type(): string; export(): Record; } /** * Span data for custom spans */ export declare class CustomSpanData extends SpanData { name: string; data: Record; constructor(name: string, data: Record); get type(): string; export(): Record; } /** * Span data for guardrail spans */ export declare class GuardrailSpanData extends SpanData { name: string; triggered: boolean; constructor(name: string, triggered?: boolean); get type(): string; export(): Record; } /** * Span data for transcription spans */ export declare class TranscriptionSpanData extends SpanData { input: string | null; inputFormat: string | null; output: string | null; model: string | null; modelConfig: Record | null; constructor(input?: string | null, inputFormat?: string | null, output?: string | null, model?: string | null, modelConfig?: Record | null); get type(): string; export(): Record; } /** * Span data for speech spans */ export declare class SpeechSpanData extends SpanData { input: string | null; output: string | null; outputFormat: string | null; model: string | null; modelConfig: Record | null; firstContentAt: string | null; constructor(input?: string | null, output?: string | null, outputFormat?: string | null, model?: string | null, modelConfig?: Record | null, firstContentAt?: string | null); get type(): string; export(): Record; } /** * Span data for speech group spans */ export declare class SpeechGroupSpanData extends SpanData { input: string | null; constructor(input?: string | null); get type(): string; export(): Record; } /** * Span data for MCP list tools spans */ export declare class MCPListToolsSpanData extends SpanData { server: string | null; result: string[] | null; constructor(server?: string | null, result?: string[] | null); get type(): string; export(): Record; }