function isChat(x) {
    return Array.isArray(x) && x.every(x => 'role' in x && 'content' in x);
}
Create a new TranslationPipeline.
@param {TextPipelineConstructorArgs} options An object used to instantiate the pipeline.