Constructors

Properties

content: ChatContent[]
createdAt: number
hash?: Uint8Array
id: string
interrupted: boolean
role: ChatRole
type: "message" = ...

Accessors

  • get textContent(): undefined | string
  • Returns a single string with all text parts of the message joined by new lines. If no string content is present, returns null.

    Returns undefined | string

Methods