Skip to content
1 min read · 37 words

Type Alias: MessageRole

ts
type MessageRole = "user" | "assistant";

The roles a Message author can hold.

Remarks

Restricted to user and assistant — system instructions, developer directives, and tool results are handled separately and never appear in the persisted message history.