Skip to content

core / Exports / UserMessage

Interface: UserMessage

User message interface - for messages from users/humans

Hierarchy

Table of contents

Properties

Properties

timestamp

timestamp: Date

Message creation timestamp

Inherited from

BaseMessage.timestamp

Defined in

conversation-history.ts:17


metadata

Optional metadata: Record<string, any>

Additional metadata

Inherited from

BaseMessage.metadata

Defined in

conversation-history.ts:20


role

role: "user"

Message role - always 'user'

Defined in

conversation-history.ts:30


content

content: string

User message content

Defined in

conversation-history.ts:33


name

Optional name: string

Optional user identifier

Defined in

conversation-history.ts:36

Released under the MIT License.