langchain.js
    Preparing search index...

    Class providing methods to interact with a DynamoDB table to store and retrieve chat messages. It extends the BaseListChatMessageHistory class.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    lc_namespace: string[] = ...

    Accessors

    • get lc_secrets(): undefined | { [key: string]: string }

      Returns undefined | { [key: string]: string }

    Methods

    • Adds a new message to the DynamoDB table.

      Parameters

      • message: BaseMessage

        The message to be added to the DynamoDB table.

      Returns Promise<void>

    • Adds new messages to the DynamoDB table.

      Parameters

      • messages: BaseMessage[]

        The messages to be added to the DynamoDB table.

      Returns Promise<void>

    • Deletes all messages from the DynamoDB table.

      Returns Promise<void>

    • Retrieves all messages from the DynamoDB table and returns them as an array of BaseMessage instances.

      Returns Promise<BaseMessage[]>

      Array of stored messages