The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { type ExtendedUIMessagePart } from 'twenty-shared/ai';
// Providers that keep reasoning hidden still emit a finished reasoning part, with no text to show.
export const isEmptyReasoningPart = (part: ExtendedUIMessagePart): boolean =>
part.type === 'reasoning' &&
part.state !== 'streaming' &&
part.text.trim().length === 0;