LanguageModelChatMessage

constructor(role: LanguageModelChatMessageRole, content: String, 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


constructor(role: LanguageModelChatMessageRole, content: ReadonlyArray<LanguageModelInputPart>, name: String = definedExternally)(source)