Memory¶
Constructors¶
Constructor¶
Applies config to system's memory API (replacing any earlier configuration).
Parameters¶
| Parameter | Type |
|---|---|
system | HolographicMemorySystem |
config? | MemoryConfig |
Returns¶
Memory
Methods¶
applyForgetting()¶
Parameters¶
| Parameter | Type |
|---|---|
options? | ForgetOptions |
Returns¶
Promise\<ForgetReport>
consolidate()¶
Parameters¶
| Parameter | Type |
|---|---|
options? | ConsolidateOptions |
Returns¶
Promise\<ConsolidationReport>
explain()¶
Parameters¶
| Parameter | Type |
|---|---|
query | string |
id | string |
options? | Omit\<RecallOptions, "k" | "history" | "explain"> |
Returns¶
Promise\<Explanation>
forget()¶
Parameters¶
| Parameter | Type |
|---|---|
target | ForgetTarget |
options? | ForgetOptions |
Returns¶
Promise\<ForgetReport>
get()¶
Parameters¶
| Parameter | Type |
|---|---|
id | string |
Returns¶
Promise\<FactRecord | null>
history()¶
Every version of the fact's supersession chain, in effect order.
Parameters¶
| Parameter | Type |
|---|---|
id | string |
Returns¶
Promise\<FactRecord[]>
recall()¶
Parameters¶
| Parameter | Type |
|---|---|
query | string |
options? | RecallOptions |
Returns¶
Promise\<Recalled[]>
remember()¶
Call Signature¶
Parameters¶
| Parameter | Type |
|---|---|
input | RememberInput |
Returns¶
Promise\<Remembered>
Call Signature¶
Parameters¶
| Parameter | Type |
|---|---|
text | string |
options? | Omit\<RememberInput, "text"> |
Returns¶
Promise\<Remembered>
rememberMany()¶
One atomic transaction: every fact is stored or none is.
Parameters¶
| Parameter | Type |
|---|---|
inputs | Iterable\<RememberInput> |
Returns¶
Promise\<Remembered[]>