import { ChatCompletionMessageParam, MultimodalToolCallResult } from '@multimodal/agent-interface'; /** * Builds chat completion messages from tool call results. * * This shared utility handles the conversion of tool call results into properly * formatted messages for different LLM engine types. * * For native engines (using OpenAI's tool protocol): * - Text content goes into a 'tool' role message * - Non-text content (like images) goes into a separate 'user' role message * * For non-native engines (Prompt Engineering & Structured Outputs): * - When only text is present: A single 'user' message with text content * - When multimodal content exists: A single 'user' message with an array of content parts, * combining text and non-text elements (images, etc.) * * @param toolCallResults - Array of multimodal tool call results to process * @param isNativeEngine - Whether to format for native tool protocol (OpenAI) * @returns Array of properly formatted chat completion messages */ export declare function buildToolCallResultMessages(toolCallResults: MultimodalToolCallResult[], isNativeEngine?: boolean): ChatCompletionMessageParam[]; //# sourceMappingURL=utils.d.ts.map