import { buildProcessedRequestFromChatResponseWithNative } from '../../../router/virtual-router/engine-selection/native-chat-process-node-result-semantics.js';
export function buildProcessedRequestFromChatResponse(chatResponse, options) {
    const streamingEnabled = options?.stream === true;
    const payload = chatResponse && typeof chatResponse === 'object' && !Array.isArray(chatResponse)
        ? chatResponse
        : { choices: [] };
    return buildProcessedRequestFromChatResponseWithNative(payload, streamingEnabled);
}
