ChatRequestUserMessage interface

A request chat message representing user input to the assistant.

Extends

Properties

content

The contents of the user message, with available input types varying by selected model.

name

An optional name for the participant.

role

The chat role associated with this message, which is always 'user' for user messages.

Property Details

content

The contents of the user message, with available input types varying by selected model.

content: string | ChatMessageContentItemUnion[]

Property Value

name

An optional name for the participant.

name?: string

Property Value

string

role

The chat role associated with this message, which is always 'user' for user messages.

role: "user"

Property Value

"user"