MCPcopy Create free account
hub / github.com/agegr/pi-web / hasDisplayableProcessMessage

Function hasDisplayableProcessMessage

components/ChatWindow.tsx:84–89  ·  view source on GitHub ↗
(message: AgentMessage)

Source from the content-addressed store, hash-verified

82}
83
84function hasDisplayableProcessMessage(message: AgentMessage): boolean {
85 if (message.role === "assistant") {
86 return getDisplayableAssistantBlocks(message as AssistantMessage).length > 0;
87 }
88 return message.role === "custom";
89}
90
91function withAssistantBlocks(
92 message: AssistantMessage,

Callers 1

ChatWindowFunction · 0.85

Calls 1

Tested by

no test coverage detected