Represents the possible types of messages in the system. Includes standard message types ("ai", "human", "tool", "system") and allows for custom string types that are non-null.
// Standard message typesconst messageType1: MessageType = "ai";const messageType2: MessageType = "human";// Custom message typeconst messageType3: MessageType = "custom_type"; Copy
// Standard message typesconst messageType1: MessageType = "ai";const messageType2: MessageType = "human";// Custom message typeconst messageType3: MessageType = "custom_type";
Represents the possible types of messages in the system. Includes standard message types ("ai", "human", "tool", "system") and allows for custom string types that are non-null.