Create a new user message.
The role of the message.
The content of the message.
Optional
name: stringThe optional name of a user for the message.
A string or heterogeneous array of things that a message can contain as content. Some parts may be message-type specific for some models.
The optional name of a user for this message.
The role of this message.
Static
AssistantUtility to create a new assistant message.
The content of the message.
Optional
name: stringThe optional name of a user for the message.
Static
UserUtility to create a new user message.
The content of the message.
Optional
name: stringThe optional name of a user for the message.
Represents a message in a chat. Can assume different roles, like user or assistant.
Stubbed