GraphMemoryImpl
@daydreamsai/core / GraphMemoryImpl
Class: GraphMemoryImpl
Defined in: packages/core/src/memory/graph-memory.ts:3
Graph Memory - stores entity relationships
Implements
Constructors
Constructor
new GraphMemoryImpl(
provider):GraphMemoryImpl
Defined in: packages/core/src/memory/graph-memory.ts:4
Parameters
provider
Returns
GraphMemoryImpl
Methods
addEntity()
addEntity(
entity):Promise<string>
Defined in: packages/core/src/memory/graph-memory.ts:6
Parameters
entity
Returns
Promise<string>
Implementation of
addRelationship()
addRelationship(
relationship):Promise<string>
Defined in: packages/core/src/memory/graph-memory.ts:19
Parameters
relationship
Returns
Promise<string>
Implementation of
findPath()
findPath(
from,to):Promise<Entity[]>
Defined in: packages/core/src/memory/graph-memory.ts:79
Parameters
from
string
to
string
Returns
Promise<Entity[]>
Implementation of
findRelated()
findRelated(
entityId,relationshipType?):Promise<Entity[]>
Defined in: packages/core/src/memory/graph-memory.ts:57
Parameters
entityId
string
relationshipType?
string
Returns
Promise<Entity[]>
Implementation of
getEntity()
getEntity(
id):Promise<null|Entity>
Defined in: packages/core/src/memory/graph-memory.ts:40
Parameters
id
string
Returns
Promise<null | Entity>
Implementation of
removeEntity()
removeEntity(
id):Promise<boolean>
Defined in: packages/core/src/memory/graph-memory.ts:106
Parameters
id
string
Returns
Promise<boolean>
Implementation of
updateEntity()
updateEntity(
id,updates):Promise<void>
Defined in: packages/core/src/memory/graph-memory.ts:92
Parameters
id
string
updates
Partial<Entity>
Returns
Promise<void>