Header menu logo Nao

ITieredMemory Type

Interface for tiered memory management

Instance members

Instance member Description

this.EvictAsync

Full Usage: this.EvictAsync

Returns: Task<int>
Modifiers: abstract

Evict memories that exceed capacity or TTL

Returns: Task<int>

this.PromoteAsync

Full Usage: this.PromoteAsync

Parameters:
Returns: Task<unit>
Modifiers: abstract

Promote a memory to a higher tier

key : string
targetTier : MemoryTier
Returns: Task<unit>

this.RetrieveAsync

Full Usage: this.RetrieveAsync

Parameters:
    query : string
    maxResults : int

Returns: Task<TieredMemoryEntry list>
Modifiers: abstract

Retrieve relevant memories across all tiers

query : string
maxResults : int
Returns: Task<TieredMemoryEntry list>

this.RetrieveFromTierAsync

Full Usage: this.RetrieveFromTierAsync

Parameters:
Returns: Task<TieredMemoryEntry list>
Modifiers: abstract

Retrieve memories from a specific tier

arg0 : MemoryTier
maxResults : int
Returns: Task<TieredMemoryEntry list>

this.StoreAsync

Full Usage: this.StoreAsync

Parameters:
Returns: Task<unit>
Modifiers: abstract

Store a memory at a specific tier

arg0 : TieredMemoryEntry
Returns: Task<unit>

Type something to start searching.