/** * A single embedded tool call record extracted from a ResponseSpanData output array. */ export interface EmbeddedToolCall { type: string; function: { name: string; }; tool_call_id: string | null; tool_call_type: string; tool_call_input: string | null; tool_call_output: string | null; tool_call_status: string | null; } /** * Maps an OpenAI embedded tool call type to a display name. * @param type - The tool call type string. * @returns A human-readable tool name. */ export declare function getToolNameFromType(type: string): string; /** * Extracts the input field from an embedded tool call item. * @param item - The raw output item from the response. * @param type - The tool call type string. * @returns The extracted input as a string, or null if none. */ export declare function extractToolInput(item: Record, type: string): string | null; /** * Extracts the output field from an embedded tool call item. * @param item - The raw output item from the response. * @param type - The tool call type string. * @returns The extracted output as a string, or null if none. */ export declare function extractToolOutput(item: Record, type: string): string | null; /** * Walks the _response.output array and returns all embedded tool call records. * @param response - The response object from a ResponseSpanData span. * @returns An array of EmbeddedToolCall records. */ export declare function extractEmbeddedToolCalls(response: Record | null | undefined): EmbeddedToolCall[];