Skip to content

Type Alias: MessageType

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / MessageType

MessageType = typeof MessageRole[keyof typeof MessageRole]

Defined in: src/types/messages.ts:68

Message type discriminator union.

This type is derived from MessageRole constants. The name MessageType is kept for backward compatibility; MessageRole works as both the const object and this type.