UIMessageRole
Namespace: Vercel.AI.Ui
public enum UIMessageRoleThe role of a UIMessage.
Fields
Section titled “Fields”Assistant
Section titled “Assistant”Assistant = 2Assistant message. Maps to 'assistant'.
Value: UIMessageRole
System
Section titled “System”System = 0System message. Maps to 'system'.
Value: UIMessageRole
User = 1User message. Maps to 'user'.
Value: UIMessageRole
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product