Skip to main content

PrincipalMemoryStore

@forge/monorepo


@forge/monorepo / backend/src / PrincipalMemoryStore

Interface: PrincipalMemoryStore

Defined in: backend/src/principal-memory/index.ts:46

Principal-scoped memory. Every method takes { tenantId, principalId } explicitly, so a query can never reach another principal's or tenant's memory. delete is a hard delete — a deleted entry cannot resurface in a later prompt.

Methods

delete()

delete(input): Promise<void>

Defined in: backend/src/principal-memory/index.ts:55

Parameters

input

TenantScope & object

Returns

Promise<void>


get()

get(input): Promise<PrincipalMemoryEntry | null>

Defined in: backend/src/principal-memory/index.ts:50

Parameters

input

TenantScope & object

Returns

Promise<PrincipalMemoryEntry | null>


list()

list(input): Promise<Page<PrincipalMemoryEntry>>

Defined in: backend/src/principal-memory/index.ts:51

Parameters

input

TenantScope & object & PageRequest

Returns

Promise<Page<PrincipalMemoryEntry>>


put()

put(input): Promise<PrincipalMemoryEntry>

Defined in: backend/src/principal-memory/index.ts:47

Parameters

input

TenantScope & object

Returns

Promise<PrincipalMemoryEntry>


retrieve()

retrieve(input): Promise<readonly PrincipalMemoryEntry[]>

Defined in: backend/src/principal-memory/index.ts:57

Active (not disabled) entries relevant to query, most salient first, capped at limit.

Parameters

input

TenantScope & object

Returns

Promise<readonly PrincipalMemoryEntry[]>


update()

update(input): Promise<PrincipalMemoryEntry>

Defined in: backend/src/principal-memory/index.ts:52

Parameters

input

TenantScope & object

Returns

Promise<PrincipalMemoryEntry>