llongterm.create

Create a new mind which can be used to store user data.


const specialistMind = await llongterm.create({ 
  username: "Dom"
  specialism: "Financial Advisor", 
  specialismDepth: 2,
  options: {
    storeInputs: true
  }
});

const customisedMind = await llongterm.create({ 
  username: "Jonatan"
  customStructuredKeys: ["Coding Languages", "Best Practices", "Testing"],
  prompt: "You are an experienced software engineering mentor with a focus on guiding junior developers."
  options: {
    storeInputs: true
  }
 });



console.log('Specialised Mind created:', specialistMind);
console.log('Customised Mind created:', customisedMind);
The mind creation options 'specialism' and 'customStructuredKeys' 
cannot be used simultaneously. 
Choose one approach for structuring the mind's memory.

Arguments

Parameter
Type
Description

username

string

Which user is this mind on behalf of

specialism

string

The area of expertise or focus for the mind

specialismDepth

string

Determines how detailed the initial memory structure should be (default: 1)

customStructuredKeys

string[]

Custom keys to initialize in the mind's structured memory

prompt

string

Alternative to specialism, used as a free-form description of the mind's purpose

options

{ storeInputs: boolean }

When true, maintains a history of all inputs

Response

Property
Type
Description

mind

<Mind>

Llongterm Mind object



Last updated