ChatMessage interface
An input message sent to a model (OTEL gen-ai semantic conventions).
Properties
| name | Optional display name of the message author. |
| parts | Ordered list of content parts that make up the message. |
| role | Role of the message author (e.g. |
Property Details
name
Optional display name of the message author.
name?: string
Property Value
string
parts
Ordered list of content parts that make up the message.
parts: MessagePart[]
Property Value
role
Role of the message author (e.g. user, assistant).
role: string
Property Value
string