@elizaos/core v0.1.7-alpha.1 / IMemoryManager
runtime:
IAgentRuntime
packages/core/src/types.ts:967
tableName:
string
packages/core/src/types.ts:968
constructor:
Function
packages/core/src/types.ts:969
addEmbeddingToMemory(
memory
):Promise
<Memory
>
• memory: Memory
Promise
<Memory
>
packages/core/src/types.ts:971
getMemories(
opts
):Promise
<Memory
[]>
• opts
• opts.roomId: `${string}-${string}-${string}-${string}-${string}`
• opts.count?: number
• opts.unique?: boolean
• opts.start?: number
• opts.end?: number
Promise
<Memory
[]>
packages/core/src/types.ts:973
getCachedEmbeddings(
content
):Promise
<object
[]>
• content: string
Promise
<object
[]>
packages/core/src/types.ts:981
getMemoryById(
id
):Promise
<Memory
>
• id: `${string}-${string}-${string}-${string}-${string}`
Promise
<Memory
>
packages/core/src/types.ts:985
getMemoriesByRoomIds(
params
):Promise
<Memory
[]>
• params
• params.roomIds: `${string}-${string}-${string}-${string}-${string}`[]
Promise
<Memory
[]>
packages/core/src/types.ts:986
searchMemoriesByEmbedding(
embedding
,opts
):Promise
<Memory
[]>
• embedding: number
[]
• opts
• opts.match_threshold?: number
• opts.count?: number
• opts.roomId: `${string}-${string}-${string}-${string}-${string}`
• opts.unique?: boolean
Promise
<Memory
[]>
packages/core/src/types.ts:987
createMemory(
memory
,unique
?):Promise
<void
>
• memory: Memory
• unique?: boolean
Promise
<void
>
packages/core/src/types.ts:997
removeMemory(
memoryId
):Promise
<void
>
• memoryId: `${string}-${string}-${string}-${string}-${string}`
Promise
<void
>
packages/core/src/types.ts:999
removeAllMemories(
roomId
):Promise
<void
>
• roomId: `${string}-${string}-${string}-${string}-${string}`
Promise
<void
>
packages/core/src/types.ts:1001
countMemories(
roomId
,unique
?):Promise
<number
>
• roomId: `${string}-${string}-${string}-${string}-${string}`
• unique?: boolean
Promise
<number
>