MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / getNonEmptyMessageParts

Function getNonEmptyMessageParts

shared/thread-inbox.ts:24–26  ·  view source on GitHub ↗
(message: AssistantMessage)

Source from the content-addressed store, hash-verified

22}
23
24function getNonEmptyMessageParts(message: AssistantMessage) {
25 return message.content.map((part) => part.trim()).filter(Boolean)
26}
27
28function hasLaterTurnWork(messages: Message[], latestAssistantIndex: number) {
29 const laterMessages = messages.slice(latestAssistantIndex + 1)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected