GraphMemory
@daydreamsai/core / GraphMemory
Interface: GraphMemory
Defined in: packages/core/src/memory/types.ts:290
Graph Memory - stores entity relationships
Methods
addEntity()
addEntity(
entity):Promise<string>
Defined in: packages/core/src/memory/types.ts:291
Parameters
entity
Returns
Promise<string>
addRelationship()
addRelationship(
relationship):Promise<string>
Defined in: packages/core/src/memory/types.ts:292
Parameters
relationship
Returns
Promise<string>
findPath()
findPath(
from,to):Promise<Entity[]>
Defined in: packages/core/src/memory/types.ts:295
Parameters
from
string
to
string
Returns
Promise<Entity[]>
findRelated()
findRelated(
entityId,relationshipType?):Promise<Entity[]>
Defined in: packages/core/src/memory/types.ts:294
Parameters
entityId
string
relationshipType?
string
Returns
Promise<Entity[]>
getEntity()
getEntity(
id):Promise<null|Entity>
Defined in: packages/core/src/memory/types.ts:293
Parameters
id
string
Returns
Promise<null | Entity>
removeEntity()
removeEntity(
id):Promise<boolean>
Defined in: packages/core/src/memory/types.ts:297
Parameters
id
string
Returns
Promise<boolean>
updateEntity()
updateEntity(
id,updates):Promise<void>
Defined in: packages/core/src/memory/types.ts:296
Parameters
id
string
updates
Partial<Entity>
Returns
Promise<void>