Skip to content

The open alternative to Salesforce, designed for AI.

265 B
Raw Blame
import { isNonEmptyString } from '@sniptt/guards';
import { type ExtendedUIMessagePart } from 'twenty-shared/ai';

export const hasReplyText = (parts: ExtendedUIMessagePart[]): boolean =>
  parts.some((part) => part.type === 'text' && isNonEmptyString(part.text));