mind.ask

You can use the ask method to enrich user queries with context pulled from the mind's memory.

const response = await mind.ask({ 
    mindId: mind_id,
    question: 'What is the users favourite color?'
});

console.log("Extracted knowledge: ", response);
Parameter
Type
Description

mindId

string

The id of the mind to fetch

question

string

The user's question to ask the mind

Response

Property
Type
Description

knowledge

string

The answer generated by the LLM, enriched with memory

Last updated