Skip to main content

Function: isMemoryQuestion()

isMemoryQuestion(turnText): boolean

Defined in: packages/agentos/src/cognition/memory/retrieval/recall/memoryQuestion.ts:33

Whether a turn asks about something said before: its lower-cased text holds, at a word boundary, one of remember, recall, remind me, did i (say|tell|mention), have i (told|mentioned|said), what did i (say|tell), what was my, what('s| is) my … (name|favou?rite|birthday), last time, earlier (i|you) (said|mentioned) or you (said|told me), a typographic apostrophe read as '. Deterministic, with no model call. English only: a host replaces it with the manager's recall.memoryQuestion.

Parameters​

turnText​

string

The turn's text.

Returns​

boolean