(entityNames: string[])
| 152 | } |
| 153 | |
| 154 | async deleteEntities(entityNames: string[]): Promise<void> { |
| 155 | const graph = await this.loadGraph(); |
| 156 | graph.entities = graph.entities.filter(e => !entityNames.includes(e.name)); |
| 157 | graph.relations = graph.relations.filter(r => !entityNames.includes(r.from) && !entityNames.includes(r.to)); |
| 158 | await this.saveGraph(graph); |
| 159 | } |
| 160 | |
| 161 | async deleteObservations(deletions: { entityName: string; observations: string[] }[]): Promise<void> { |
| 162 | const graph = await this.loadGraph(); |
no test coverage detected