LanguageModelChatMessage

constructor(role: LanguageModelChatMessageRole, content: JsAny, name: String = definedExternally)(source)

Create a new user message.

Parameters

role

The role of the message.

content

The content of the message.

name

The optional name of a user for the message.

Online Documentation