mind.ask
const { knowledge } = await mind.ask('How does the user feel about apples?');
console.log("Extracted knowledge: ", response);Parameter
Type
Description
Property
Type
Description
Last updated
You can use the ask method to enrich user queries with context pulled from the mind's memory.
const { knowledge } = await mind.ask('How does the user feel about apples?');
console.log("Extracted knowledge: ", response);question
string
The user's question to ask the mind
Response
knowledge
string
The answer generated by the LLM, enriched with memory
Last updated