@ai16z/eliza v0.1.5-alpha.3 / IMemoryManager
runtime:
IAgentRuntime
packages/core/src/types.ts:905
tableName:
string
packages/core/src/types.ts:906
constructor:
Function
packages/core/src/types.ts:907
addEmbeddingToMemory(
memory
):Promise
<Memory
>
• memory: Memory
Promise
<Memory
>
packages/core/src/types.ts:909
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:911
getCachedEmbeddings(
content
):Promise
<object
[]>
• content: string
Promise
<object
[]>
packages/core/src/types.ts:919
getMemoryById(
id
):Promise
<Memory
>
• id: `${string}-${string}-${string}-${string}-${string}`
Promise
<Memory
>
packages/core/src/types.ts:923
getMemoriesByRoomIds(
params
):Promise
<Memory
[]>
• params
• params.roomIds: `${string}-${string}-${string}-${string}-${string}`[]
Promise
<Memory
[]>
packages/core/src/types.ts:924
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:925
createMemory(
memory
,unique
?):Promise
<void
>
• memory: Memory
• unique?: boolean
Promise
<void
>
packages/core/src/types.ts:935
removeMemory(
memoryId
):Promise
<void
>
• memoryId: `${string}-${string}-${string}-${string}-${string}`
Promise
<void
>
packages/core/src/types.ts:937
removeAllMemories(
roomId
):Promise
<void
>
• roomId: `${string}-${string}-${string}-${string}-${string}`
Promise
<void
>
packages/core/src/types.ts:939
countMemories(
roomId
,unique
?):Promise
<number
>
• roomId: `${string}-${string}-${string}-${string}-${string}`
• unique?: boolean
Promise
<number
>