MCPcopy Create free account
hub / github.com/Noumena-Network/code / assistantHasVisibleText

Function assistantHasVisibleText

src/components/FullscreenLayout.tsx:218–224  ·  view source on GitHub ↗
(m: Message)

Source from the content-addressed store, hash-verified

216 return count;
217}
218function assistantHasVisibleText(m: Message): boolean {
219 if (m.type !== 'assistant') return false;
220 for (const b of m.message.content) {
221 if (b.type === 'text' && b.text.trim() !== '') return true;
222 }
223 return false;
224}
225export type UnseenDivider = {
226 firstUnseenUuid: Message['uuid'];
227 count: number;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected