Skip to content

The open alternative to Salesforce, designed for AI.

338 B
Raw Blame
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;