MCPcopy Create free account
hub / github.com/arctic-cli/interface / Message

Function Message

packages/ui/src/components/message-part.tsx:52–65  ·  view source on GitHub ↗
(props: MessageProps)

Source from the content-addressed store, hash-verified

50}
51
52export function Message(props: MessageProps) {
53 return (
54 <Switch>
55 <Match when={props.message.role === "user" && props.message}>
56 {(userMessage) => <UserMessageDisplay message={userMessage() as UserMessage} parts={props.parts} />}
57 </Match>
58 <Match when={props.message.role === "assistant" && props.message}>
59 {(assistantMessage) => (
60 <AssistantMessageDisplay message={assistantMessage() as AssistantMessage} parts={props.parts} />
61 )}
62 </Match>
63 </Switch>
64 )
65}
66
67export function AssistantMessageDisplay(props: { message: AssistantMessage; parts: PartType[] }) {
68 const filteredParts = createMemo(() => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected