Skip to main content

Class: HumanChatMessage

schema.HumanChatMessage

Hierarchy

Constructors

constructor

new HumanChatMessage(text)

Parameters

NameType
textstring

Inherited from

BaseChatMessage.constructor

Defined in

langchain/src/schema/index.ts:55

Properties

name

Optional name: string

The name of the message sender in a multi-user chat.

Inherited from

BaseChatMessage.name

Defined in

langchain/src/schema/index.ts:50


text

text: string

The text of the message.

Inherited from

BaseChatMessage.text

Defined in

langchain/src/schema/index.ts:47

Methods

_getType

_getType(): MessageType

The type of the message.

Returns

MessageType

Overrides

BaseChatMessage._getType

Defined in

langchain/src/schema/index.ts:61