Skip to content
AgentsKit

@agentskit/memory β€” Type Aliases

API type aliases for @agentskit/memory.

#Type Alias: KvMemoryConfig

KvMemoryConfig = InMemoryKvConfig | FileKvConfig | SqliteKvConfig | RedisKvConfig | VectorKvConfig | LocalStorageKvConfig

Defined in: packages/memory/src/kv-store-types.ts:88

Discriminated configuration accepted by the KV memory factories.


#Type Alias: MemoryBackendStatus

MemoryBackendStatus = "supported" | "planned"

Defined in: packages/memory/src/kv-store-factory.ts:34

Availability status reported for a key-value memory backend.


#Type Alias: RedactionMode

RedactionMode = "redact" | "tokenize"

Defined in: packages/memory/src/redaction.ts:33

Wrap any ChatMemory so PII is redacted (or tokenized) on every save(). Works with the in-memory, file, sqlite, turso, and redis chat memories. load() and clear() are passthrough β€” reveal happens at read time via @agentskit/core/security reveal(), not inside the memory.

mode: 'redact' (default) replaces matches with the rules' bracket markers β€” irreversible. mode: 'tokenize' replaces matches with opaque <&lt;piitoken:…>> markers and stores originals in the vault so role-gated reveal() can recover them.

Closes the memory-write half of issue #791.


#Type Alias: SqliteOpener

SqliteOpener = (path) => SqliteLike

Defined in: packages/memory/src/kv-store-types.ts:121

Opens a SQLite database at the given path.

#Parameters

#path

string

#Returns

SqliteLike

Explore nearby