"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.contentPartsToMessageContent = contentPartsToMessageContent;
function contentPartsToMessageContent(parts) {
    if (parts.length === 0)
        return '';
    if (parts.length === 1 && parts[0].type === 'text')
        return parts[0].data.text;
    return [...parts];
}
//# sourceMappingURL=contentPartsToMessageContent.js.map
