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:81


#Type Alias: MemoryBackendStatus

MemoryBackendStatus = "supported" | "planned"

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


#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:109

#Parameters

#path

string

#Returns

SqliteLike

Explore nearby