Add or update an entity
Get entity by ID
Query entities
Optional options: KnowledgeQueryOptionsAdd or update a relation
Get relations for an entity
Optional options: { Optional direction?: "both" | "outgoing" | "incoming"Optional types?: RelationType[]Record an episodic memory. A record whose context names a memory trace (memoryTraceId, as MemoryStore.store
writes it) is the trace's copy; the in-memory, SQL and Neo4j graphs keep one copy per trace, so recording the
trace again replaces it.
Get memory by ID
Query episodic memories
Optional options: { Optional types?: ("error" | "success" | "discovery" | "conversation" | "task" | "interaction")[]Optional participants?: string[]Optional minOptional timeOptional from?: stringOptional to?: stringOptional limit?: numberRecall relevant memories (updates access count)
Delete the episodic records that copy the filter's traces or scopes: a trace's copy by its key, a scope's copies
by the scope their stored context names. The relations that name a deleted record go with it, as an entity's do
(deleteEntity): a host can relate a record, since upsertRelation takes any node id.
Traverse the graph from a starting entity
Optional options: TraversalOptionsFind shortest path between two entities
Get neighborhood of an entity
Semantic search across entities and memories
Extract entities and relations from text
Optional options: { Optional extractOptional entityMerge duplicate entities
Get knowledge graph statistics
In-memory Knowledge Graph implementation