Skip to content

UIMessageRole

Namespace: Vercel.AI.Ui

public enum UIMessageRole

The role of a UIMessage.

View source

Assistant = 2

Assistant message. Maps to 'assistant'.

Value: UIMessageRole

View source

System = 0

System message. Maps to 'system'.

Value: UIMessageRole

View source

User = 1

User message. Maps to 'user'.

Value: UIMessageRole

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product