mind.remember

To store information in the mind, use the remember method. This allows the Mind to persist knowledge and generate a system message that can be passed to the LLM.

const response = await mind.remember({ 
  mindId: mind,
  thread: {
    "all": true,
    "user": user,
    "content": [{
      "author": mind,
      "message": "I understand you want to learn more programming languages"
    }],
    "context": "programming languages"
  }
});

Arguments

Parameter
Type
Description

mindId

string

The id of the mind to use

thread

  • all: Mind will remember every message in thread or selected and important messages

  • user: User context relates to

  • content, list of messages includes author of the message and message string

  • context: Additional background information or related detials

Response

Property
Type
Description

metadata

<metadataObject>

Configuration and identifying information about a mind.

systemMessage

string

A generated message that provides context and relevant knowledge for the mind's responses.

Last updated