Kind: Class
Source: atloria-monorepo/libs/agent-core/src/memory/json-store.ts
Implements: MemoryStore
Methods
| Method | Signature | Returns |
|---|---|---|
save | save(record: MemoryRecord) | void |
load | load(id: string) | `MemoryRecord |
query | query(query: MemoryQuery) | MemoryRecord[] |
delete | delete(id: string) | boolean |
getAll | getAll(projectId: string) | MemoryRecord[] |
count | count(projectId: string) | number |
touch | touch(id: string) | void |
Where it refuses work
JsonStorestops the work with an early return whenfound, in 2 places.JsonStorestops the work with an early return whena.confidence !== b.confidence.JsonStorestops the work with an early return whena.accessCount !== b.accessCount.JsonStorestops the work with an early return when!record.JsonStorestops the work with an early return whenthis.cache.has(projectId).
When something fails
JsonStorehandles failure in 7 places: it discards it silently in 4, turns it into a return value in 2, and logs it and continues in 1.
Was this page helpful?