MCPcopy
hub / github.com/solidSpoon/DashPlayer / CustomMessage

Interface CustomMessage

src/common/types/msg/interfaces/CustomMessage.ts:4–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import { ModelMessage } from 'ai';
3
4export default interface CustomMessage<T> {
5 toMsg(): Promise<ModelMessage[]>;
6
7 msgType: MsgType;
8
9 copy(): T;
10
11 getTopic(): Topic;
12
13 getTaskIds(): number[];
14}
15
16export type MsgType =
17 | 'human-topic'

Callers 3

useChatPanel.tsFile · 0.65
copyFunction · 0.65
ConversationPaneFunction · 0.65

Implementers 3

HumanTopicMessagesrc/common/types/msg/HumanTopicMessage
HumanNormalMessagesrc/common/types/msg/HumanNormalMessag
AiStreamingMessagesrc/common/types/msg/AiStreamingMessag

Calls

no outgoing calls

Tested by

no test coverage detected